Support Topics Documentation Slack YouTube Blog

Uncaught #<Object> FileUpload error in Angularjs

Hi, I have an issue with fileupload when using angularjs. I don’t know if it related to angular or not. When i try to upload an image to the server, in pure js it’s ok (callback working) but in angularjs i get Uncaught #<Object> (callback isn’t working) it throw badResponse(xhr);. the xhr.status is 200 when i check.

Hi Lâm,

Could you please make sure you’re using the latest version of backendless.js?

https://github.com/Backendless/JS-SDK/blob/master/libs/backendless.js
or
https://api.backendless.com/sdk/js/latest/backendless.js

Regards,
Mark

Double check that.

Hi Lâm,

could you please provide me an example snippet?
It will help me to understand the cause of this error and I’ll try to help you.

Regards,
Stanislav

well, you can reproduce that when you upload a file in a ionic webapp

Well, I just tested it in ionic webapp (don’t know how it can affect the Backendless JS SDK, but anyway) and get no errors.

Maybe you do it in some other way than me. As much as I would love to help you I can’t do it without more information.

Regards,
Stanislav