File Upload Not working in Android 4.4.2

前端 未结 1 1341
醉酒成梦
醉酒成梦 2020-12-21 13:37

I have created an app using phonegap. The app works fine on all android versions. But the file upload feature on this app does not work on Android 4.4.2. I have googled a lo

相关标签:
1条回答
  • 2020-12-21 14:08

    There's no chance to get file uploads working in a WebView on Android 4.4.2.

    Nevertheless, the onclick or onchange events are still fired on the <input type="html"> element.

    This means you can either get the file there via JavaScript or call a Java method from those event handlers and do the file upload manually.

    For Cordova, there's an issue here:

    https://issues.apache.org/jira/browse/CB-5294

    ... and a workaround here:

    https://github.com/cdibened/filechooser

    0 讨论(0)
提交回复
热议问题