From 54cfb90efe63b8e9398a9136623cbcf7b3dd0526 Mon Sep 17 00:00:00 2001 From: Brice Sanchez Date: Wed, 19 Sep 2018 08:52:04 -0400 Subject: [PATCH] Resources : Whitelist more mime types --- .../lib/refinery/resources/configuration.rb | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/resources/lib/refinery/resources/configuration.rb b/resources/lib/refinery/resources/configuration.rb index 71b9a8fbf7..5f0f8d0419 100644 --- a/resources/lib/refinery/resources/configuration.rb +++ b/resources/lib/refinery/resources/configuration.rb @@ -15,6 +15,40 @@ module Resources self.dragonfly_name = :refinery_resources - self.whitelisted_mime_types = %w[application/pdf] + self.whitelisted_mime_types = %w[ + audio/mp4 + audio/mpeg + audio/wav + audio/x-wav + + image/gif + image/jpeg + image/png + image/svg+xml + image/tiff + image/x-psd + + video/mp4 + video/mpeg + video/quicktime + video/x-msvideo + video/x-ms-wmv + + text/csv + text/plain + + application/pdf + application/rtf + application/x-rar + application/zip + + application/vnd.ms-excel + application/vnd.ms-powerpoint + application/vnd.msword + + application/vnd.openxmlformats-officedocument.presentationml.presentation + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + application/vnd.openxmlformats-officedocument.wordprocessingml.document + ] end end \ No newline at end of file