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?
Asked
Active
Viewed 1,703 times
2
-
Have a look on how you can add file chooser in webview for files uploading http://stackoverflow.com/questions/19687282/webviewclient-and-filechooser – Jibran Khan May 06 '15 at 15:33
-
thank you, the thing is I am working on facebook's app plataform so don't have a way of manipulating the in-app webview behavior. – Carlos May 06 '15 at 16:08
-
What behavior are you seeing on the in-app browser with the file upload button? – Shireesh Asthana May 11 '15 at 22:35
-
when you click it nothing happens, it just doesn't work. – Carlos May 13 '15 at 14:18
-
Maybe is not the exact case but I fixed this issue with this https://stackoverflow.com/a/53705145/3182171 – Diego D May 20 '19 at 15:52
1 Answers
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.

Julien Bachmann
- 753
- 8
- 18