title: i can't upload image,video and files in kotlin webview
body: <p>I can select a videos and images but i could not upload in my <code>webview</code> ,<code>kotlin</code> program.</p>
  
  <pre><code>webview.setWebChromeClient(object:WebChromeClient() {
                  override fun onShowFileChooser(webView:WebView, filePathCallback:ValueCallback&lt;Array&lt;Uri&gt;&gt;, fileChooserParams:FileChooserParams):Boolean {
                      var mFilePathCallback = filePathCallback
                      val intent = Intent(Intent.ACTION_GET_CONTENT)
                      intent.setType("*/*")
                      val PICKFILE_REQUEST_CODE = 100
                      startActivityForResult(intent, PICKFILE_REQUEST_CODE)
                      return true
                  }
              })
  
              fun onActivityResult(requestCode: Int, resultCode: Int,
                                   intent: Intent,
                                   mFilePathCallback: Any): Boolean {
                  var PICKFILE_REQUEST_CODE = null
                  if (requestCode == PICKFILE_REQUEST_CODE)
                  {
                      val result = if (intent == null || resultCode != RESULT_OK)
                          null
                      else
                          intent.getData()
                      val resultsArray = arrayOfNulls&lt;Uri&gt;(1)
                      resultsArray[0] = result
                      mFilePathCallback.onReceiveValue(resultsArray)
  
                  }
                  return true
              }
  </code></pre>