Skip to content

[bug] Android file picker does not return actual file name #3029

@velocitysystems

Description

@velocitysystems

Describe the problem

On Android, when using plugin-dialog to select a file, the API returns only a content resolver identifier (URI) rather than the actual file name. This prevents a user from performing import operations that depend on the file’s name.

  1. Open the file picker via the Tauri plugin on an Android device.
  2. Select any file (e.g. example.mp4).
  3. Inspect the returned payload.

Note:

  • If we pick a file from local storage, then we have the name like a typical URL
  • If we pick a file from cloud storage (e.g. Google Drive, possibly others), then we don't have the name

Describe the solution you'd like

The plugin should return both:

  • A valid URI/path that can be used for reading or copying the file.
  • The actual file name (e.g. "example.mp4").

Alternatives considered

N/A

Related

#3030
#933
#2749

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions