Wish File upload Android 5

Siam

Active Member
Licensed User
Longtime User
Hello,

since Android 5 is out the File upload should be work.
can anybody write a wrapper for this webview-function or erel is it possible to implement this in the core webview library ?

here are some info's
public boolean onShowFileChooser (WebView webView, ValueCallback<Uri[]> filePathCallback, WebChromeClient.FileChooserParams fileChooserParams)
Added in API level 21
Tell the client to show a file chooser. This is called to handle HTML forms with 'file' input type, in response to the user pressing the "Select File" button. To cancel the request, call filePathCallback.onReceiveValue(null) and return true.

Parameters
webView The WebView instance that is initiating the request.
filePathCallback Invoke this callback to supply the list of paths to files to upload, or NULL to cancel. Must only be called if the showFileChooser implementations returns true.
fileChooserParams Describes the mode of file chooser to be opened, and options to be used with it.
Returns
  • true if filePathCallback will be invoked, false to use default handling.
Quelle:
https://developer.android.com/refer...oid.webkit.WebChromeClient.FileChooserParams)

regards

andy
 
Top