输入文件不是在Facebook的内部的浏览器,任何解决方案? [英] Input file is not working in facebook's internal browser, any solutions?

查看:279
本文介绍了输入文件不是在Facebook的内部的浏览器,任何解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的外部链接使用一个文件上传输入,但我不能让它工作,因为它似乎不是由Android手机上Facebook的基本内部浏览器/的WebView支持。我搜索了和答案,但没有发现任何相关的脸谱,任何解决方案的人?

My external link uses a file upload input but I can´t make it work because it seems to not being supported by facebook's basic internal browser/WebView on android phones. I've searched for and answer but found nothing related to facebook, any solutions anyone?

推荐答案

在实际上问题是,Android的WebView中没有用于显示一个文件选择器的默认实现。而且每使用网页视图必须实现WebChromeClient的一些功能应用,支持的文件类型的输入。

In fact the problem is that Android webview does not have a default implementation for showing a file chooser. And each App that use a webview must implement some function of the WebChromeClient to support input of type file.

所以,除非Android的WebView中都会有一个默认的文件选择器实现,唯一的解决办法是,Facebook的Andr​​oid的开发团队实现方法

So unless Android webview will have a default file chooser implementation, The only solution would be that Facebook Android dev team implement the method

onShowFileChooser

在WebChromeClient的。见Android的web视图文档:
<一href=\"http://developer.android.com/reference/android/webkit/WebChromeClient.html#onShowFileChooser%28android.webkit.WebView,%20android.webkit.ValueCallback%3Candroid.net.Uri[]%3E,%20android.webkit.WebChromeClient.FileChooserParams%29\" rel=\"nofollow\">http://developer.android.com/reference/android/webkit/WebChromeClient.html#onShowFileChooser

但问题是如何将此问题报告给Facebook的Andr​​oid的开发团队。

But the problem is how to report this problem to Facebook Android dev team.

这篇关于输入文件不是在Facebook的内部的浏览器,任何解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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