From ba4dbe49f81e9a0480b6cb4ea52d2b00db5f9a54 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Tue, 4 Apr 2017 10:51:54 +0200 Subject: [PATCH] Whitelist application/zip file type in paperclip for some .xlsx files [SCI-1166] --- config/initializers/paperclip.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 18b84cedc..2cdeb718e 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -202,6 +202,7 @@ module Paperclip )) || # Spreadsheet application (Set[content_type, content_types_from_name].subset? Set.new %w( + application/zip application/vnd.ms-office application/vnd.ms-excel application/vnd.openxmlformats-officedocument.spreadsheetml.sheet