0

I have a webview that points to a website:

webView.loadUrl("https://websmash.herokuapp.com/");

When the user clicks on a file upload button in the website it should open a file upload dialog on the phone.

Matt Gaunt has provided a fully-functional example using onShowFileChooser(), although the file upload button is in the local index.html file. I've been trying to get this working for a website inside the webview, but to no avail.

What adaptations must be made to get it working when the button is in the website which the webview points to?

Bazley
  • 2,699
  • 5
  • 36
  • 61

1 Answers1

0

Take a look at this SO Post. Per the author`s answer code works for all android versions.

Community
  • 1
  • 1
Imran Ali
  • 321
  • 2
  • 13