Clarification on Transactions with File Uploads in Backendless

Hello,

I have a scenario where I need to ensure data consistency across multiple operations. Specifically, I am uploading a file using the UploadFile component and also performing two database operations. To guarantee that all actions are completed together or not at all (in case of a failure), I would like to use a transaction.

Could you clarify if Backendless transactions can include file upload operations along with database operations? Additionally, if one of these actions fails, would the transaction rollback the file upload as well, ensuring that no partial data remains?

Thank you for your assistance!

Regards,
Manuel

Hello @Manuel_Germano

Transactions is built-in DataBase functionality, so inside it we could manage only data in tables.

But you could maintain work with files by your hands using try/catch in your services/web pages

Hello @Dima,

Yes, that´s what i did.
Thanks!

Regards,
Manuel