Search code examples
javascriptasp.nethtmlandroid-4.4-kitkat

Webpage to choose and upload file for Android 4.4.2 stock browser


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?


Solution

  • 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.