Webpage to choose and upload file for Android 4.4.2 stock browser

北城以北 提交于 2019-12-12 01:55:49

问题


I have faced with Android 4.4.2 stock browser <input type="file"> issue in my ASP.Net MVC web application. Found solution here HTML file input in android webview (android 4.4, kitkat) but this is acceptable only for Android WebView app.

Also found that file could be uploaded using ajax request File Upload without Form, but can't figure out how to get pictureInput.files[0] object in this case without <input type="file"> tag.

Is there any way to get this work or workaround this Android 4.4.2 stock browser issue for Webpage?


回答1:


No, there's no way to get this working on Android 4.4.2.

All you can do is intercept the onclick or onchange events on the <input type="file"> because these are still fired.



来源:https://stackoverflow.com/questions/27027649/webpage-to-choose-and-upload-file-for-android-4-4-2-stock-browser

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