Добавляем определение content_type для XLS

This commit is contained in:
Nastia Gorokhova-Alekseeva
2022-09-23 14:36:52 +03:00
parent 949515962e
commit 90fe90fd4a

View File

@@ -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