Input file is not working in facebook's intern

2019-05-19 07:10发布

问题:

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.