tauri-apps / tauri-apps/plugins-workspace
[bug] Android file picker does not return actual file name
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
### Describe the problem
On Android, when using [plugin-dialog](https://v2.tauri.app/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
Contributor guide
Assessment
This issue has not been assessed yet.