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

Doesn't work on mobile Chrome #397

Closed
mfeif opened this issue Nov 25, 2013 · 35 comments
Closed

Doesn't work on mobile Chrome #397

mfeif opened this issue Nov 25, 2013 · 35 comments
Labels
bug Bug in the library next release priority Should be fixed ASAP

Comments

@mfeif
Copy link

mfeif commented Nov 25, 2013

I've tried the current Chrome (on Android 4.4 and 4.3), and even with Dropzonejs.com's own sample, I get "failed to open selected file" on any selected file.

Attaching a web-dev session via USB shows nothing in the console; no logs, no warnings, etc.

Thanks!

@enyo
Copy link
Collaborator

enyo commented Nov 25, 2013

It works fine in chrome on ios. Anyone else experiencing this on android?

@jgirdner
Copy link

I have the same issue from Chrome on Android. I am using Android KitKat.

@enyo
Copy link
Collaborator

enyo commented Dec 20, 2013

With latest Dropzone version?

@jgirdner
Copy link

Yes with the latest version of Dropzone. I actually get a different dialog to select the image when I use Chrome VS Firefox on android. Firefox works fine, its seems to only be Chrome that has the file upload error.

@mfeif
Copy link
Author

mfeif commented Dec 21, 2013

I noticed a wrinkle that might indicate that it is a UI weirdness rather
than a DropZone thing...

If I choose a photo from "Gallery" and don't choose photos that are
intrinsically "on" the device and instead choose from ones that are syncd
from picassa or some such, it fails. If I take a picture, then choose that
one, it succeeds.

I can't access any other "native" sources for files; just things like
Dropbox, GDrive, etc. Probably none of these have files to share, per-se.

So perhaps it's not a bug at all, but something weird with Android.

On Fri, Dec 20, 2013 at 5:19 PM, Jason Girdner notifications@github.comwrote:

Yes with the latest version of Dropzone. I actually get a different dialog
to select the image when I use Chrome VS Firefox on android. Firefox works
fine, its seems to only be Chrome that has the file upload error.


Reply to this email directly or view it on GitHubhttps://github.com//issues/397#issuecomment-31049093
.

@enyo
Copy link
Collaborator

enyo commented Dec 21, 2013

@mfeif very good news ;)
Thanks for testing it and reporting back. I'll look at it, as soon as I have an Android mobile in my hand.

@andreimc
Copy link

hey I am having some problems on mobile chrome IOS, the progress bar does not work and sometimes in does not fire the before send action.

@codysherman
Copy link

Running Android 4.4.2, when I click the dropzone, a dialog pops up if I want to use the Camera, Camcorder, or Documents (Android 4.4's new file explorer). If I select a picture from Documents, it doesn't work, however if I choose Camera and take a new picture, it works great!

Hopefully it's just a minor bug stopping selecting from Documents from working.

@codysherman
Copy link

Follow up to my last post. 4.4 isn't including filling the "type" of the file in the upload, resulting in the failure. A workaround fix would be to set the part of dropzone that checks for the filetype as image to also accept a blank.

@numanBasit
Copy link

so is there any solution for this problem? i am facing this problem too.. what is the solution?

@codysherman
Copy link

@numanBasit See my answer directly above your post. So far as I can tell, it's an Android bug, but my solution does function.

@enexusde
Copy link

Is there still no solution?

@enyo enyo added next release bug Bug in the library priority Should be fixed ASAP labels Dec 16, 2014
@jpirovano
Copy link

Doesn't work on mobile Chrome, latest version..

@jpirovano
Copy link

@enyo still no solution

@germain-gg
Copy link

Not working for me as well on Chrome on iPhone 4/5C/6/6Plus

@enyo
Copy link
Collaborator

enyo commented Mar 16, 2015

It's working fine on all iPhones that I have tested. I'm sorry, it's difficult to reproduce the problem described

@germain-gg
Copy link

Hi @enyo, sorry I should have explained the process to reproduce the problem.

Test on your example on http://dropzonejs.com and drop a .mov file into the upload zone, then a little square appers saying the name of the file, its size.

If you do the exact same thing on Safari with iOS7 then instead of the size you will have NaN and instead of MiB you will have undefined.

I tested in iOS8 with an iPad and an iPhone and Safari works perfectly, but Chrome isn't working at all (same issue as iOS7).

Will you investigate on this to support those browser ? Or is it out of your roadmap ?

Thanks!

@zsitro
Copy link

zsitro commented Mar 26, 2015

try with

acceptedFiles: 'image/*',

it works with current version of dropzone on ios, android.

@wfried
Copy link

wfried commented Apr 16, 2015

I am also having problems with iOS 8/Chrome. Uploads intermittently fail with no error response in my app. Previews are rendered and the iOS network spinner turns, but the files are never posted. I don't have this problem in iOS 8/Safari or Desktop browsers including Chrome.

@tangrufus
Copy link

On iOS 8/Chrome with dropzone v4.0.1, every request returns status 400 (Bad Request).

Everything works fine on iOS 8/safari or desktop/Chrome

@jonesmac
Copy link

+1 for Chrome on ios not even opening the image selection dialogue.

@Loubot
Copy link

Loubot commented Sep 23, 2015

Anyone get a solution to this? I'm having issues with firefox on android

@enyo
Copy link
Collaborator

enyo commented Oct 11, 2015

@wfried and @tangrufus have you tried with acceptedFiles: 'image/*'?

@Loubot
Copy link

Loubot commented Oct 11, 2015

I have. I click on an image in my photos then the page seems to refresh and
nothing happens. Looking at my server on localhost it just issues a
refresh. So it's not issuing a post even. Seems to just be a refresh.

Any ideas?

On Sun, Oct 11, 2015 at 7:30 PM, Matias Meno notifications@github.com
wrote:

@wfried https://github.com/wfried and @tangrufus
https://github.com/TangRufus have you tried with acceptedFiles:
'image/*'?


Reply to this email directly or view it on GitHub
#397 (comment).

@biblicalph
Copy link

Having similar issues on iOS. Image is selected correctly. On call of process queue, spinner displays forever with no file sent over to the server.

Any updates on this please?

@jshin49
Copy link

jshin49 commented Apr 29, 2016

Have same issue with Galaxy S6 Edge on Android 5.1.

Selecting images and uploading doesn't work, but choosing the option 'Camera' works perfectly fine.

@stephan-nordnes-eriksen

Same issue on iphone 5s, ios 10

@ghost
Copy link

ghost commented May 6, 2017

Works fine with desktop but fails with mobile browser.

@HosMercury
Copy link

Same here

@HendrikPetertje
Copy link

HendrikPetertje commented Jun 5, 2017

Hey there, We are implementing dropzone as an upload solution for our tip service, as such we had some time and around 300.000 unique devices click items over the last couple of months.
When visiting our page on a lollipop or above device there are no issues at all and anything works fine. When however going to the same page from a kitkat or below device, clicking the upload button does nothing. No dialogues are triggered. We have the accept images only thing in place already to make sure we only get pictures send to us.

This bug is also triggered when rolling back the android-webviewer updates in Lollipop and marshmallow releases, suggesting that this issue could be coming from incompatibility with an older version of chrome-webkit as Android moved to having chrome-webkit as an updatable app from Lollipop onward (allowing older devices from that point onward to remain up-to-date with the newest JS and HTML things)

I'm incredibly interested to know how the community has been dealing with or fixing this issue as kitkat devices still form 10% of all visiting android devices to our sites.

@enyo
Copy link
Collaborator

enyo commented Jun 6, 2017

Thanks @HendrikPetertje for pinpointing the device and os. This allows me to test and debug it. I will look into it.

@HendrikPetertje
Copy link

Hey guys. As it turns out android file uploads on kitkat are a real pain as you need to do something with the camera instead. I've written a piece of code on the dropzone project over at gitlab (where the project lives nowadays) and created a pull request for it.

https://gitlab.com/meno/dropzone/merge_requests/8

It doesn't really "fix" the issue as these older versions of android just don't support uploads of these kinds, but it puts some sugarcoating with a nice message on the problem instead.

@jbruni
Copy link

jbruni commented Jun 21, 2017

@scroogepro
Copy link

Don't forget to check your upload_max_filesize value in php.ini. It helped me.

@enyo enyo closed this as completed Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in the library next release priority Should be fixed ASAP
Projects
None yet
Development

No branches or pull requests