[Multiple File Upload] Multiple Files - Abort upload

Forge Component
(51)
Published on 26 Jun by Remco Dekkinga
51 votes
Published on 26 Jun by Remco Dekkinga

Hi,


I'm trying to upload multiple files using this component and i need to know if is possible, abort the "transaction", that is, if i find an error in one of the files, I would like to rollback the uploaded files and not insert any files to the table.

Is this possible?

Thank you.

Solution

Hi, in the documentation tab you find the basic setup for uploading files. You can adjust this to your use case. You can for instance save all files to a temp table to validate before saving in the final table, store it in the final table with a flag which you can use to identify the group of files or save all the files in one transaction and do a rollback when you see anything that doesn’t fit your business rules. 

Kind regards, Remco

Solution