mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-01 16:05:40 +03:00
Добавляем определение content_type для XLS
This commit is contained in:
@@ -21,6 +21,7 @@ module Paperclip
|
||||
when "csv", "xml", "css", "js" then "text/#{type}"
|
||||
when "liquid" then "text/x-liquid"
|
||||
when 'svg' then 'image/svg+xml'
|
||||
when 'xls' then 'application/vnd.ms-excel'
|
||||
else "application/x-#{type}"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user