Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload does not work with Android default browser/UC Browser #388

Closed
Jempan opened this issue Nov 5, 2014 · 4 comments
Closed

Upload does not work with Android default browser/UC Browser #388

Jempan opened this issue Nov 5, 2014 · 4 comments

Comments

@Jempan
Copy link

Jempan commented Nov 5, 2014

Thanks for an awesome script, very useful! It´s works flawlessly in Chrome for Android and in Safari on iOS, but in the native Android browser and UC Browser the files have a content-length of 0 when they reach the server :( I have also tried to use the $upload.http and send the file as an ArrayBuffer with no luck. Unfortunately kind of stuck and out of ideas now and any help or guidance would be very appreciated :)

@danialfarid
Copy link
Owner

It could be a bug on the native browser.
Similar issues:
#290
#110
#84

@danialfarid
Copy link
Owner

If you really want to get it work on the native browser you can try to get a simple html multipart file upload to work there and then try to send the file with XMLHttpRequest without angular.js. If both of them worked then we can narrow down where things go wrong.
Also look for the known bugs of the browser version you are using, maybe it is a known bug and there are workarounds.

@Jempan
Copy link
Author

Jempan commented Nov 5, 2014

Thanks for your quick answer, I will try that!

@Jempan
Copy link
Author

Jempan commented Nov 5, 2014

Ok, after some digging this seems to be a known Android bug http://ghinda.net/article/jpeg-blob-ajax-android/ and I only get it to work if I send the image as an ArrayBuffer with XMLHttpRequest. I guess I will have to change my implementation to that. Thanks for pointing me in the right direction!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants