mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 00:24:42 +08:00
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:
commit
b6e3774d0b
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…
Add table
Reference in a new issue