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

<input type="file" multiple> not working #621

Closed
KeySeeDev opened this issue Jan 16, 2019 · 6 comments
Closed

<input type="file" multiple> not working #621

KeySeeDev opened this issue Jan 16, 2019 · 6 comments

Comments

@KeySeeDev
Copy link

KeySeeDev commented Jan 16, 2019

Hi,
I just noticed that on android is impossibile to get multiple files trought file choser.
Code used: <input type="file" name="attachment[]" multiple="multiple"/>

Tested on iOS and works as should. Work on Google Chrome too.
Searched on the web for any solution... but found only this:
https://stackoverflow.com/questions/5907369/file-upload-in-webview

Maybe you know how to deal with it? I tried other filechoisers but none of them supports misc files.
It would be great to be able to select files just like on the other platforms.
Thanks you very much!

@artuska
Copy link

artuska commented Jan 25, 2019

+1

MatusFiala added a commit to MatusFiala/cordova-android that referenced this issue Feb 6, 2019
@KeySeeDev
Copy link
Author

Work for me on Android 8.1.0.
@MatusFiala, thanks!

@gabriele-sacchi
Copy link

@MatusFiala please note that the lack fo the intent type and category prevents this to work using ng-file-upload.

These 2 lines fix the problem as reported on this new issue.

Thanks!!

@shubhamtakode
Copy link

I'm facing same issue tried name="files[]" but still not working on android

erisu pushed a commit that referenced this issue Sep 8, 2019
@marcusdiy
Copy link

Currently on android browser, using multiple attribute, allows the direct selection of multiple files. On cordova is required to hold an element to enter multiple selection mode. Would it be possibile to do the same? As its more user friendly actually...

@jcesarmobile
Copy link
Member

multiple is working fine in cordova-android 9, as marcusdiy said, you have to hold a file and then you can pick more.

And no, that behavior can't be changed, is provided by the webview picker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants