Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63186

WebView on Android does not support selecting a file to upload (<input type="file">)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.0
    • WebView
    • None

    Description

      I noticed that the WebView does not support downloads but I believe that is already handled by QTBUG-59006. Downloads don't work for me on any OS. However, when viewing a webpage that has a file selection element (<input type="file">) then clicking it will open a native file selection window in Windows and Linux but it doesn't work on Android. I tried adding various permissions to the application in Android but still had no luck.

      Are there plans to add download/file selection support to the WebView in the future?

      Should the file selection element work in Android (like it does on Windows and Linux)?

      Is there an alternative to WebView that works on Android, Windows, and Linux that can be used for both file selection and file downloads on a web page?

      To reproduce:

      • run the following example on Android "Qt WebView Examples - Minibrowser"
      • navigate to a webpage that has a file selection element (i.e. <input type="file">), for example: https://viljamis.com/filetest/
      • opening the file selection dialog does not work on Android in WebView (but it works fine in Windows and Linux)

      Many thanks!

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stromme Christian
            motohead Devin Steffler
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes