Backendless Support

Get file name from asynchronous fault

I am uploading an array of files asynchronously in Android. When there is a fault (e.g. "File exists"), how can I obtain the name of the file that caused the fault? When the upload is successful, handleResponse gives me the file URL, but handleFault doesn't.

Leave a Comment

Comments (1)


Hi Daniel,

Unfortunately, the error does not have that information (as you noticed). As an alternative solution (which is less attractive), you could upload files one by one and thus you would know which of the files fails to upload. I am sorry, but I cannot think of another option.