Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8017

Add proper support for <input type=file> for Android 5.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • cordova-android
    • None

    Description

      Android L includes a supported callback for showing the file chooser:

      http://developer.android.com/reference/android/webkit/WebChromeClient.html#onShowFileChooser(android.webkit.WebView, android.webkit.ValueCallback<android.net.Uri[]>, android.webkit.WebChromeClient.FileChooserParams)

      There's a good example implementation here:

      https://github.com/GoogleChrome/chromium-webview-samples/blob/master/input-file-example/app/src/main/java/inputfilesample/android/chrome/google/com/inputfilesample/MainFragment.java

      Attachments

        Issue Links

          Activity

            People

              agrieve Andrew Grieve
              agrieve Andrew Grieve
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: