mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-10-26 22:16:28 +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 |         # Spreadsheet application | ||||||
|         (Set[content_type, content_types_from_name].subset? Set.new %w( |         (Set[content_type, content_types_from_name].subset? Set.new %w( | ||||||
|  |           application/zip | ||||||
|           application/vnd.ms-office |           application/vnd.ms-office | ||||||
|           application/vnd.ms-excel |           application/vnd.ms-excel | ||||||
|           application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |           application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue