@tauri-apps/plugin-dialog - v2.3.1
    Preparing search index...

    Function save

    • 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.

      Parameters

      Returns 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