diff --git a/lib/paperclip/upfile.rb b/lib/paperclip/upfile.rb index a1ebfad..4465e81 100644 --- a/lib/paperclip/upfile.rb +++ b/lib/paperclip/upfile.rb @@ -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}"