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
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 ?
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.