File Manager Widget: User-Specified File Type Extensions?

0
Hi there, I’m looking for a way to allow an administrator user to specify the types of file extensions other users are allowed to upload. Ideally, I’d like to be able to modify the File Manager widget that’s a part of the Mendix Modeler to accept an attribute for the allowed file extensions instead of being hard-coded in, but I haven’t been able to find the source code for the File Manager. Is that code available somewhere for modification? Thanks for any help!
asked
1 answers
1

Depending on your Mendix version you could manipulate the widget after it has been rendered. I tested the below it does seem to adjust the behavior

wid.restrictions="zip;json;txt"
wid.params.restrictions="zip;json;txt";
wid._allowedExts=["zip","json","txt"];

You could construct this code from some context object, that should make it dynamic

answered