-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Uploading multiple files with firefox (mobile) #11
Comments
Hi. How big are the files you're trying to upload? and how many? and does it work with another browser? |
Hi, I tried uploading anywhere between 1 and ~150 .jpg images about 2mb each. It works for a single one but not for more. It does work with chrome (as I stated above). Thanks for your interest |
Ok I managed to reproduce the problem. Firefox mobile does not properly send the multipart form like other browsers do. When testing with two files... Chrome mobile: {
'content-length': '522814',
'content-type': 'multipart/form-data; boundary=----WebKitFormBoundaryBHWzyAyea9HBaafn',
'accept-encoding': 'gzip, deflate',
} Firefox mobile: {
'content-length': '230',
'accept-encoding': 'gzip, deflate',
'content-type': 'multipart/form-data; boundary=---------------------------116521216141164983863359111',
} content-length is only 230. I've googled a bit and tried to use fetch instead of axios but nothing seems to solve this issue on firefox mobile. Maybe we need to upload files one-by-one |
I just tested with firefox on mac, and it works. So it's definitely a firefox mobile issue |
Again with Android-FF with at least version 131.0.1 and 132.0.1 Form is defined as: Input defined as: try to send an 1MB file, the request has only 12kBytes with this headers:
|
When I upload phone -> PC with firefox mobile and select multiple files at once, I instantly get a successful upload message but only some of the chosen files appear on my PC and are corrupt (0 bytes). It works fine with a single file as well as with chrome mobile.
Thanks a lot for the tool, it solves a big pain point for me :)
The text was updated successfully, but these errors were encountered: