From 8e1f1f2efdf3749bda7ef14d76d077169e67758e Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Tue, 22 Feb 2022 11:52:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D0=BC=20=D1=82=D0=B8=D0=BF=20=D0=BA=D0=B0=D1=80=D1=82?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D0=BA=20webp=20=D0=BF=D0=BE=20=D1=80=D0=B0?= =?UTF-8?q?=D1=81=D1=88=D0=B8=D1=80=D0=B5=D0=BD=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/paperclip/upfile.rb | 1 + 1 file changed, 1 insertion(+) 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}"