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

Android: selectedFile from FileDialog does not match to common implementation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.3, 6.7.0
    • Quick: Dialogs
    • None
    • Android

    Description

      The FileDialog contains selectedFile property.

      On Android, FileDialog uses content:// URIs. So exact path that we get looks like:

      content://com.android.providers.media.documents/document/video%3A1000006966

      That doesn't fit to implementation in other platforms. Mentions URIs does not contain real file name. In such case, selectedFile cannot be displayed or parsed (like in other platforms).
      This issue can be noticed in bugs like the QTBUG-122273. Current workaround uses QFileInfo, but content:// URIs returned on Android is inconsistent with common implementation

      Expectation: selectedFile should contain original file name.

      Can currently used URLs be somehow translated back and forth between a user-readable form and a platform-understood form?

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              bartlomiejmoskal Bartlomiej Moskal
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes