页面,选择并上传文件是Android 4.4.2浏览器的股票 [英] Webpage to choose and upload file for Android 4.4.2 stock browser

查看:174
本文介绍了页面,选择并上传文件是Android 4.4.2浏览器的股票的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经面对的是Android 4.4.2浏览器的股票&LT;输入类型=文件&GT; 在我的ASP.Net MVC的Web应用程序的问题。这里找到解决方案,<一个href=\"http://stackoverflow.com/questions/19882331/html-file-input-in-android-webview-android-4-4-kitkat\">HTML文件输入的Andr​​oid的WebView(Android 4.4系统,奇巧)但是这是可以接受的仅适用于Android的WebView应用。

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.

还发现该文件可以使用Ajax请求文件上传不形上传,但可T弄清楚如何获得在这种情况下 pictureInput.files [0] 对象,而&LT;输入类型=文件&GT; 标记。

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.

有没有办法让这个工作,或解决此的是Android 4.4.2股票浏览器的问题进行网页?

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

推荐答案

没有,有没有办法让在Android 4.4.2,这个工作

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

所有你能做的就是拦截的onclick 的onchange &LT事件;输入类型=文件方式&gt; ,因为这些仍然解雇

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

这篇关于页面,选择并上传文件是Android 4.4.2浏览器的股票的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆