Allow only certain types of files to be uploaded

0
Hello everybody,   is there a way that the app can allow only certain types of files to be uploaded. For example .png/.jpg e.t.c ?
asked
3 answers
0

Hi Georgi,

 

You can use File dropper witgets. It also has a more aesthetic use and has very nice features.

 

https://marketplace.mendix.com/link/component/111497

 

image.png

answered
0

Hello guys, thank you for the answers. The problem is that I can not use the filedropper widget. It's just a JS that triggers the front camera of the android device and user takes a picture. Maybe a before commit MF logic ?

answered
0

Regardless of the widget used, always make sure to verify files received by (external) users from a security standpoint. This includes virus scanning and file extension matching.

 

Whether the file type and extension validation is performed on the client or server by the widget used is very important, since some of the client side checks can be circumvented.

 

As such, it would be my recommendation to validate the extension in microflows on the server runtime in addition to client side feedback using bedankt widget behaviour.

 

answered