- 
                Notifications
    
You must be signed in to change notification settings  - Fork 439
 
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestplatform: iosiOS specific issuesiOS specific issuesplugin: dialog
Description
Describe the problem
On iOS, when using plugin-dialog to select a file, the API does not behave as expected when filtering or selecting files.
Custom file extensions (e.g. .foo) appear in the picker but cannot be selected. Additionally, unless MIME types or known extensions (like "txt") are passed, the picker defaults to an image picker instead of a file picker β two distinct modes on iOS.
Further, proper handling of security-scoped resources is missing or incomplete, which is required for persistent file access on iOS.
Repro (a)
- Open the file picker via the Tauri plugin on an iOS device.
 - Provide a custom file type filter (e.g. ["foo", "bar"]).
 - Observe that matching files appear in the picker but cannot be selected.
 
Repro (b)
- Open the file picker via the Tauri plugin on an iOS device.
 - Try calling the picker without MIME types or standard extensions (e.g. "txt").
 - Note that an image picker appears instead of the expected file picker.
 
Describe the solution you'd like
Files with custom extensions in the filter should be selectable.
- The picker should open the 
UIDocumentPickerViewController(file picker), not theUIImagePickerController(image picker), when no image MIME types are provided. - Returned file handles should properly include security-scoped resource access, allowing safe reading and writing of files outside the app sandbox.
 
Alternatives considered
N/A
Related
onehumandev
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestplatform: iosiOS specific issuesiOS specific issuesplugin: dialog