Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set default file name in save dialog #2232

Closed
bdjnk opened this issue Jul 16, 2021 · 1 comment
Closed

set default file name in save dialog #2232

bdjnk opened this issue Jul 16, 2021 · 1 comment
Assignees

Comments

@bdjnk
Copy link

bdjnk commented Jul 16, 2021

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.

@lucasfernog
Copy link
Member

This feature requires a change on the great RFD library: PolyMeilex/rfd#18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants