How to restrict uploading .exe file

Nuxeo is allowing to upload of any kind of file format to the application. I don't want to upload the .exe file to the application. can anyone tell me how to do this?

thanks

0 votes

1 answers

1060 views

ANSWER



If you're using WebUI, the upload providers support an accept attribute, where the value is a comma-separated list of accepted mime types.

https://doc.nuxeo.com/nxdoc/web-ui-upload-providers/

Here's an example:

    <nuxeo-dropzone role="widget"
                label="PDF file"
                name="content"
                accept="application/pdf"
                document="[[document]]"></nuxeo-dropzone>
0 votes