Input file is not working in facebook's internal browser, any solutions?

喜欢而已 提交于 2020-01-13 20:29:26

问题


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?


回答1:


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.

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

of the WebChromeClient. See android webview documentation: http://developer.android.com/reference/android/webkit/WebChromeClient.html#onShowFileChooser

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



来源:https://stackoverflow.com/questions/30080303/input-file-is-not-working-in-facebooks-internal-browser-any-solutions

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