Not able to select multiple files (images) in Android 4.2.2 on demos #840

Closed
ollyculverhouse opened this Issue May 14, 2013 · 27 comments

Projects

None yet

6 participants

@ollyculverhouse

I am unable to select multiple files (in this case images) when using your demos on the site in stock Android 4.2.2.

I already use fineuploader for a site and am seeing the same behaviour.

@rnicholus
Member

Thanks for reporting this. I'll take a peek once I get my hands on an ICS device. Likely sometime today.

@rnicholus
Member

This doesn't appear to be an issue specific to Fine Uploader. If I create a page with nothing but <input type="file" multiple>, I still cannot select multiple files on an Android device. Hmm.

@rnicholus
Member

It looks like Android simply doesn't support the multiple attribute on file input elements. I could have sworn this worked at some point in the past. Maybe I'm imagining that though.

@ollyculverhouse

Yea, me too, I'm sure it worked before...

@rnicholus
Member

Looking at support for HTML5 form features, it seems like this never should have worked officially.

@rnicholus
Member

This will be a documentation item for 3.6. I'll investigate a bit more as well, perhaps. I suppose it's possible that this attribute was unofficially supported in some builds of Android.

@ollyculverhouse

OK, thanks. Bit of a shame seeing that big block of red on the HTML5 form support table.

Thanks anyway.

@ollyculverhouse

Hmm, is that just for Android though, shouldn't Chrome for Android be a bit further along than that?

@rnicholus
Member

Certainly with the stock browser. Do you have Chrome installed on your device? I don't, at the moment.

@rnicholus
Member

Just found a device with Chrome, 1 sec...

@rnicholus
Member

Verified - it doesn't.

Mobile browsers definitely present a new set of challenges and limitations. Android already doesn't handle chunking correctly, and I've had to add code in the past to deal with overly-aggressive (standards-violating) POST request caching in iOS6. Also, iOS6 does not allow camera access AND multiple file selection on the same file input element.

If Android simply doesn't support the multiple attribute, there is nothing I can do to allow the user to select multiple files in one dialog, unfortunately. I'll be sure to document this and possibly add some code to detect support for this to the features module.

@rnicholus rnicholus was assigned May 29, 2013
@rnicholus rnicholus added a commit that referenced this issue May 29, 2013
@rnicholus rnicholus #840 - fix damn spacing b3800c8
@rnicholus rnicholus closed this May 29, 2013
@sayanb
sayanb commented Mar 24, 2014

Hi Ray,

Just checking if you implemented this bit? "and possibly add some code to detect support for this to the features module".

Is there some documentation for this fix somewhere?

@rnicholus
Member

@sayanb I've added an entry to the FAQ. I'm unaware of a way to programmatically detect lack of support for a multiple attribute on a file input element at this time.

@bjornbos

Anyone found out if the multiple attribute will be part of the new Android L?

@rnicholus
Member

Looks like Nexus devs will have access to L starting today. If anyone uncovers any info on this, please post here.

@bjornbos

We have tested this on a Nexus and were very disappointed to find out we still couldn't select multiple images.

@rnicholus
Member

The nexus was running"L", correct?

On Fri, Jun 27, 2014 at 4:48 AM, Bjorn Bos notifications@github.com
wrote:

We have tested this on a Nexus and were very disappointed to find out we still couldn't select multiple images.

Reply to this email directly or view it on GitHub:
#840 (comment)

@bjornbos

Correct, on a Nexus 7

@rnicholus
Member

Well, perhaps support will ship with the final version of L.  I guess we will have to wait and see.

On Fri, Jun 27, 2014 at 7:09 AM, Bjorn Bos notifications@github.com
wrote:

Correct, on a Nexus 7

Reply to this email directly or view it on GitHub:
#840 (comment)

@anbarasuthresnathan

Anyone found the solution how to select the multiple file in android L

@rnicholus
Member

You will be able to do this once it is supported by the OS. There is no "workaround".

@ruinunes

Still unable to perform multiple uploads (with Chrome 43 and Android 5.0.2).

@rnicholus
Member

@ruinunes It is allegedly supported in Android 5.x, but only with the Chrome 49+ browser on Android. I haven't verified. Source: http://caniuse.com/#feat=input-file-multiple.

@ruinunes

Seems to be up to the android browser app developers to enable a parameter in the intent call to grab multiple files instead of a single file, from an available OS file picker. AFAIK, this ability is enabled since android 4.4.4 (although we run our android tablet from 5.0.2) but not implemented by the browsers I have tested.
Yep, the web says Chrome 49 solves this, albeit, for Chrome only. I will do an OS and and Chrome update to our samsung tablet update soon.

@ruinunes

Got multiple files upload this way on Android:
Hit your normal <input type='file' multiple> button. File picker appears: do a long press on a file to select it, then select other files. On the top bar an "Open" appears, select it and then multiple files are added to the files collection.

Note: this may work fine with file pickers integrated with the OS. Those who come from third-party apps (including bundled Samsung apps like Photos/Gallery or Microsoft OneDrive ) which offer custom file picker views may not work, because of their implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment