Skip to content

set default file name in save dialog #2232

@bdjnk

Description

@bdjnk

Is your feature request related to a problem? Please describe.

When I attempt to save some data using dialog.save I am missing the ability to set a default file name. This is feature is present in other applications.

Describe the solution you'd like

The ability to set a default file name, presumably as part of the dialog.savedialogoptions.

Describe alternatives you've considered

Using an a tag with the download attribute set and the href attribute pointing to a blob: URL. However this doesn't work currently, as detailed here.

Additional context

As an example, in Chrome, when attempting to "Save link as..." the dialog.ts:61 link, I get the following.

2021-07-16-123031_1144x598_scrot

I first posted this as a discussion question (#2226) but it seems to be actually a feature request.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions