webkitdirectory directory

30 views
Skip to first unread message

zack hee

unread,
Apr 26, 2016, 4:25:44 PM4/26/16
to phonegap
Hi,

Im planning to apply <input type="file"> with 

webkitdirectory directory

to select the directory of the mp3 files.

it works in my pc, but when i zipped it and upload to phonegap build then download it into my android phone, i run it it only allow me to select single file.

WHy and What is the solution i can do?

Thz

Kerri Shotts

unread,
Apr 27, 2016, 3:04:09 PM4/27/16
to phonegap
See http://caniuse.com/#feat=input-file-multiple.

Android doesn't support multiple file selection, apparently.

On Tuesday, April 26, 2016 at 3:25:44 PM UTC-5, zack hee wrote:
...

Jesse Monroy

unread,
Apr 28, 2016, 2:28:16 PM4/28/16
to phonegap

jcesarmobile

unread,
Apr 29, 2016, 10:19:37 AM4/29/16
to phonegap
The android webview doesn't support input type file, but cordova adds some code to make it work, but right now it only provides a single file selection

Jesse Monroy

unread,
Apr 29, 2016, 3:38:25 PM4/29/16
to phonegap
@jcesarmobile,
any plugins on this? Maybe Eddy Verbruggen?

Jesse

jcesarmobile

unread,
May 2, 2016, 4:54:35 AM5/2/16
to phonegap
There is no way of making the input file work on a different way using a plugin

There are plugins to pick files from the device and get the file url, but you can't use them as input file elements. Some of them might allow to select multiple files at once, but as far as I know, none of them allows to pick a folder
Reply all
Reply to author
Forward
0 new messages