input type=“file” does not work in cordova

风格不统一 提交于 2020-12-12 06:25:16

问题


I have a cordova based app and cannot get the file browser to launch on android (SDK-23) with HTML File tag

 <input type="file" accept=".doc,.docx,.rdf,.txt,.pdf,.odt" 
                    onchange="angular.element(this).scope().upload(this)">

Nothing happens when I select the link.

Can you please give some suggestion on how to fix this issue

Thanks for the help


回答1:


<input type="file"> will not work in Cordova. You need to use the File Plugin.



来源:https://stackoverflow.com/questions/39476916/input-type-file-does-not-work-in-cordova

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!