How to restrict uploading .exe file
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2021 12:45 AM
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
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2021 03:57 AM
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>
