Add allowed zip file type to Powerpoin and Word files [SCI-1916]

This commit is contained in:
Oleksii Kriuchykhin 2018-01-11 15:17:30 +01:00
parent 660ee6af81
commit 8b11427780

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