mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-04-10 00:53:51 +02:00
add more extensions to the allowed projects attachements
This commit is contained in:
parent
ef5701dac6
commit
6bbb45c953
@ -39,7 +39,7 @@ class ProjectCaoUploader < CarrierWave::Uploader::Base
|
|||||||
# Add a white list of extensions which are allowed to be uploaded.
|
# Add a white list of extensions which are allowed to be uploaded.
|
||||||
# For images you might use something like this:
|
# For images you might use something like this:
|
||||||
def extension_white_list
|
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
|
end
|
||||||
|
|
||||||
# Override the filename of the uploaded files:
|
# Override the filename of the uploaded files:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user