AnsweredAssumed Answered

Adding filters for extensions.

Question asked by shibu on Oct 3, 2013
Latest reply on Oct 7, 2013 by shibu
In /share/components/upload folder, we are having some js files like dnd-upload.js, file-upload.js, flash-upload.js, html-upload.js. I can see one line in file-upload.js like;

<filter: {array},         // limits what kind of files the user can select in the OS file selector


I modified file-upload.js and html-upload.js files.
Modified files are attaching with this.

But this didnt block uploading image files.
How can I block uploading files by adding extensions into the filter?

Outcomes