1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

add more extensions to the allowed projects attachements

This commit is contained in:
Sylvain 2016-09-07 12:17:21 +02:00
parent ef5701dac6
commit 6bbb45c953

View File

@ -39,7 +39,7 @@ class ProjectCaoUploader < CarrierWave::Uploader::Base
# Add a white list of extensions which are allowed to be uploaded.
# For images you might use something like this:
def extension_white_list
%w(pdf ai eps cad math svg stl dxf dwg obj step iges 3dm doc docx png)
%w(pdf ai eps cad math svg stl dxf dwg obj step iges 3dm doc docx png ino scad fcad skp sldprt sldasm slddrw slddrt tex latex ps)
end
# Override the filename of the uploaded files: