Merge pull request #931 from okriuchykhin/ok_SCI_1916

Add allowed zip file type to Powerpoin and Word files [SCI-1916]
This commit is contained in:
okriuchykhin 2018-01-12 14:28:26 +01:00 committed by GitHub
commit b6e3774d0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,6 +182,7 @@ module Paperclip
)) ||
# Word processor application
(Set[content_type, content_types_from_name].subset? Set.new %w(
application/zip
application/vnd.ms-office
application/msword
application/msword-template
@ -221,6 +222,7 @@ module Paperclip
)) ||
# Presentation application
(Set[content_type, content_types_from_name].subset? Set.new %w(
application/zip
application/vnd.ms-office
application/vnd.ms-powerpoint
application/vnd.openxmlformats-officedocument.presentationml.presentation