Skip to content
Tauri

save

save(options): Promise<null | string>

Defined in: index.ts:197

Open a file/directory save dialog.

The selected path is added to the filesystem and asset protocol scopes. When security is more important than the easy of use of this API, prefer writing a dedicated command instead.

Note that the scope change is not persisted, so the values are cleared when the application is restarted. You can save it to the filesystem using tauri-plugin-persisted-scope.

SaveDialogOptions = {}

Promise<null | string>

A promise resolving to the selected path.

import { save } from '@tauri-apps/plugin-dialog';
const filePath = await save({
filters: [{
name: 'Image',
extensions: ['png', 'jpeg']
}]
});

2.0.0


© 2025 Tauri Contributors. CC-BY / MIT