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

Uploading multiple files with firefox (mobile) #11

Open
jatentaki opened this issue Apr 26, 2020 · 4 comments
Open

Uploading multiple files with firefox (mobile) #11

jatentaki opened this issue Apr 26, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@jatentaki
Copy link

jatentaki commented Apr 26, 2020

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 :)

@mifi
Copy link
Owner

mifi commented Apr 28, 2020

Hi. How big are the files you're trying to upload? and how many? and does it work with another browser?

@jatentaki
Copy link
Author

jatentaki commented Apr 28, 2020

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

@mifi
Copy link
Owner

mifi commented Apr 28, 2020

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

@mifi mifi added the bug Something isn't working label Apr 28, 2020
@mifi
Copy link
Owner

mifi commented Apr 28, 2020

I just tested with firefox on mac, and it works. So it's definitely a firefox mobile issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants