input type=“file” does not work in cordova
问题 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