Dropzone: Doesn't work on mobile Chrome

Created on 25 Nov 2013  Â·  35Comments  Â·  Source: dropzone/dropzone

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!

bug next release priority

All 35 comments

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

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

With latest Dropzone version?

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.

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 [email protected]:

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/enyo/dropzone/issues/397#issuecomment-31049093
.

@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.

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.

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.

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.

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

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

Is there still no solution?

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

@enyo still no solution

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

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

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!

try with

acceptedFiles: 'image/*',

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

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.

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

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

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

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

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 [email protected]
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
https://github.com/enyo/dropzone/issues/397#issuecomment-147233463.

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?

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.

Same issue on iphone 5s, ios 10

Works fine with desktop but fails with mobile browser.

Same here

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.

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

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.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rogamoore picture rogamoore  Â·  19Comments

CallMeBruce picture CallMeBruce  Â·  26Comments

mschipperheyn picture mschipperheyn  Â·  98Comments

prabhs226 picture prabhs226  Â·  42Comments

pedrocunha picture pedrocunha  Â·  18Comments