onFileUploadError being called on success

Hi,

I successfully upload a file and get a response back with status code 201. The body of the response is empty. This results in the onFileUploadError handler being called. If i send something in the body, i get the correct onFileUpload handler called. However i don’t want to send anything in the body. Any workarounds for this?

Hello,

The response body is required for the Uploader as the correct code alone cannot reliably indicate the successfull upload.

You can return any response from server, and it will be considered as a success (except for the explicit {status:“error”}).

Great, that’s what i ended up doing. Thanks!