admin管理员组

文章数量:1334916

I'm building a cross platform application using Apache Cordova for ios and android. I need a "File chooser" support in my app to upload files (document files not images) to server from the mobile. Is there an alternative for the input element type='file' that supports older versions as well?

Note: The location of the file which is to be uploaded to the server is unknown. User needs to browse the phone and upload documents.

I'm building a cross platform application using Apache Cordova for ios and android. I need a "File chooser" support in my app to upload files (document files not images) to server from the mobile. Is there an alternative for the input element type='file' that supports older versions as well?

Note: The location of the file which is to be uploaded to the server is unknown. User needs to browse the phone and upload documents.

Share Improve this question asked May 4, 2015 at 9:27 IamSravanIamSravan 871 silver badge7 bronze badges 1
  • It's interesting how something like this isn't supported in the official plugins. Did you end up using a separate plugin per platform, out of curiosity? – jarodsmk Commented Jun 30, 2016 at 6:05
Add a ment  | 

1 Answer 1

Reset to default 6

You have some plugins for android

https://github./MaginSoft/MFileChooser

https://github./cdibened/filechooser

https://github./don/cordova-filechooser

And one plugins for iOS

https://github./jcesarmobile/FilePicker-Phonegap-iOS-Plugin

本文标签: javascriptFile chooser support in phonegap for ios and AndroidStack Overflow