Skip to content

Save file to specific directory #277

Discussion options

You must be logged in to vote

there is a new browser api available that will make this library a bit obsolete eventually when https://github.com/WICG/file-system-access becomes more accessible.

With this new file system access you can use await window.showSaveFilePicker() to ask the user where it should save the file and even what name or format the user wants to save it at.
it's more like a "save as" rather than just plain "save"

you can also use window.showDirectoryPicker() to ask for a specific folder and ask for write permission to that folder...
then you can write data to wherever you want without prompting the user further.

this new picker should have an option for hinting where it should save a file.
https://gi…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jimmywarting
Comment options

Answer selected by aravindkumarlotus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants