mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +08:00
Whitelist application/zip file type in paperclip for some .xlsx files [SCI-1166]
This commit is contained in:
parent
317739af1e
commit
ba4dbe49f8
1 changed files with 1 additions and 0 deletions
|
@ -202,6 +202,7 @@ module Paperclip
|
|||
)) ||
|
||||
# Spreadsheet application
|
||||
(Set[content_type, content_types_from_name].subset? Set.new %w(
|
||||
application/zip
|
||||
application/vnd.ms-office
|
||||
application/vnd.ms-excel
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
||||
|
|
Loading…
Reference in a new issue