mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-01 16:05:40 +03:00
Правильно определяем тип картинок webp по расширению
This commit is contained in:
@@ -15,6 +15,7 @@ module Paperclip
|
||||
when %r"jpe?g" then "image/jpeg"
|
||||
when %r"tiff?" then "image/tiff"
|
||||
when %r"png", "gif", "bmp" then "image/#{type}"
|
||||
when "webp" then "image/webp"
|
||||
when "txt" then "text/plain"
|
||||
when %r"html?" then "text/html"
|
||||
when "csv", "xml", "css", "js" then "text/#{type}"
|
||||
|
||||
Reference in New Issue
Block a user