Skip to content
Tauri

OpenDialogOptions

Defined in: index.ts:30

Options for the open dialog.

2.0.0

optional canCreateDirectories: boolean

Defined in: index.ts:54

Whether to allow creating directories in the dialog. Enabled by default. macOS Only


optional defaultPath: string

Defined in: index.ts:43

Initial directory or file path. If it’s a directory path, the dialog interface will change to that folder. If it’s not an existing directory, the file name will be set to the dialog’s file name input and the dialog will be set to the parent folder.

On mobile the file name is always used on the dialog’s file name input. If not provided, Android uses (invalid).txt as default file name.


optional directory: boolean

Defined in: index.ts:47

Whether the dialog is a directory selection or not.


optional filters: DialogFilter[]

Defined in: index.ts:34

The filters of the dialog.


optional multiple: boolean

Defined in: index.ts:45

Whether the dialog allows multiple selection or not.


optional recursive: boolean

Defined in: index.ts:52

If directory is true, indicates that it will be read recursively later. Defines whether subdirectories will be allowed on the scope or not.


optional title: string

Defined in: index.ts:32

The title of the dialog window (desktop only).


© 2025 Tauri Contributors. CC-BY / MIT