How to upload multiple files in mendix

1
hii guys, i have cretae a file entity to accept files from pc. I have two seperated file manager widgets one after another and i have two upload buttons next to eachother which will commit files two databases. but only file scanned from second widget gets commited to datbase while file scanned from first file manager widget not. Even though microflow to both upload buttons is same, only 2nd file is commited.Why?can anyone please suggest me what to do.
asked
2 answers
2

Hi Akash,
Instead of using FileManager widget you can use File Dropper widget ( https://marketplace.mendix.com/link/component/111497 )
We can upload multiple no of file at a time by using this. To View this file you can use Universal (https://marketplace.mendix.com/link/component/116935 ) file viewer widget.

Configuration:

 


Here you need to configure the Entity (Attachment) which is generalized from System.FileDocument and one Association (MyWorkflow.Attachment_Comment/MyWorkflow.Comment) .
Note: FileDropper must be placed inside a Dataview only.

UI:

Highlighted in yellow is widget you can click that and select a files (txt,pdf,jpg), that will be previewed as bellow the widget.


Above are retriving the list of uploaded Images. I Hope this info will be helpful for you. Thanks.

 

answered
0

Hi Akash,

Please refer this link
Upload a File in Your App Using ATS - Quality Add-ons Guide | Mendix Documentation

Thanks

answered