blueimp / jQuery-File-Upload

File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.
https://blueimp.github.io/jQuery-File-Upload/
MIT License
30.96k stars 7.96k forks source link

Multiple File Selection Does Not Work For Android 4.04 and 4.3 #3288

Open marsleebrenda opened 10 years ago

marsleebrenda commented 10 years ago

I have applied jqueryfileupload successfully in a website. In windows XP /7/vista, I can select multiple files by hitting control key and clicking mouse's left button.

But, in the Android 4.04 and 4.3, I can't find a way to select multiple files. In android 4.04/4.3 , after hitting "add files", it will pop a list of file pickers in OS such as gallery, file manager, astro,etc.

But none of the file pickers in Andrioid seem to able to select multiple files.

I can select one file, but not multiple files.

I 've tried android Chrome and firefox, and Multi file selection does not work

marsleebrenda commented 10 years ago

I tried it on Sony Xperia phone and it doesn't work. Just curious of how you do it. Question 1: How can you select multiple file in Android? holding and pressing the thumbnail? Question 2: What file picker you use for selecting files? Astro or gallery? Question 3: What 's version of Android and the phone you tested?

blueimp commented 10 years ago

Sorry, but my original answer was based on false data. I don't always re-test features and my own browser support chart listed Chrome on Android falsely as supporting multiple file uploads.

However this doesn't seem to be the case, as also highlighted by the following issue posts: https://github.com/blueimp/jQuery-File-Upload/issues/2803 https://github.com/blueimp/jQuery-File-Upload/issues/2312

Generally speaking, Android doesn't seem to support multiple file selection no matter the browser version: http://caniuse.com/input-file-multiple

marsleebrenda commented 10 years ago

Update on the Andriod Multiple file selection:

According to the following, Android API18 introduced Intent extra :EXTRA_ALLOW_MULTIPLE

"Android JellyBean MR2 (API 18) introduced an Intent extra which tells the file picker that it can select multiple files. Each of the files will be returned as a ClipData entry on the completed Intent."

https://code.google.com/p/chromium/issues/detail?id=348912

In order to make Multiple file selection work in Android,

  1. Broswer must allow input type="file" multiple
  2. Android OS must be JellyBean MR2 (API18) or higher
  3. App must use EXTRA_ALLOW_MULTIPLE(Android have no standard file dialog, it uses app as a file picker)

Android chrome has problem with input type="file" multiple , the bug is fixed in Chromium. But I have no idea when it will release at least a beta version.

https://code.google.com/p/chromium/issues/detail?id=348912

I don't know whether input type="file" multiple will work in android firefox or opera. But even if these browser works, I still have to find an Android app which uses "EXTRA_ALLOW_MULTIPLE"

blueimp Do you have any idea what Android app will use "EXTRA_ALLOW_MULTIPLE"?Thanks!

blueimp commented 10 years ago

Thanks a lot for the detailed information, @marsleebrenda! It's very much appreciated. Unfortunately I'm not aware which app if any uses the EXTRA_ALLOW_MULTIPLE feature.

marsleebrenda commented 10 years ago

Another Update on Chromium( Chrome multi file selection)

The multiple file selection has been added to Chromium.(no beta yet) To allow multiple selection in Android, it requires

  1. Android 4.3(API 18 or higher)
  2. A browser with multi-file selection (so far only Chromium has it, no beta yet)
  3. An app which provides multiple file selection with the files returned as a ClipData entry on the completed Intent.

    I search all over the web and someone have suggested "Google Photos app for Android" and "File Selector/Explorer".

Maybe there 're more apps will work. I guess some apps in google play will work, possibly the app in the File Manger/ Broswer and/or Gallery categories.


To see what functions and methods got changed on Android Chrome, go to https://code.google.com/p/chromium/issues/detail?id=348912

Look for "Changed paths"

I have checked the tree in 92a80fefb8b288e63e50a6b24f1ad473f076f42e https://chromium.googlesource.com/chromium/src/+/92a80fefb8b288e63e50a6b24f1ad473f076f42e The build contains all the changes for the multiple file selection


Download Link for android chrome with multiple-file selection http://commondatastorage.googleapis.com/chromium-browser-continuous/index.html?prefix=Android/289059/


The download zip file, "chrome-android.zip" contains Contentshell.apk and ChromeShell.apk.


Any volunteer want to try??? blueimp. you want to try?

Thanks!

marsleebrenda commented 10 years ago

Another Update on the Chrome multiple upload Status Chrome has just released beta version 38.0.2125.57 for Android. I tested it with a Samsung Note 3 phone with Android 4.3 and Google+ Photos. Multilple Upload works great.

blueimp commented 10 years ago

That's great news! Thanks for the continued update, @marsleebrenda! :+1: