javascript - File chooser support in phonegap for ios and Android - Stack Overflow

admin2025-03-19  0

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

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1742374301a210350.html

最新回复(0)