最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览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

发布评论

评论列表(0)

  1. 暂无评论