mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 22:44:22 +08:00
Add allowed zip file type to Powerpoin and Word files [SCI-1916]
This commit is contained in:
parent
660ee6af81
commit
8b11427780
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue