Skip to content

Commit

Permalink
Resources : Whitelist more mime types
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesanchez committed Sep 20, 2018
1 parent 57281ca commit 5a0b208
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion resources/lib/refinery/resources/configuration.rb
Expand Up @@ -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

0 comments on commit 5a0b208

Please sign in to comment.