-
Notifications
You must be signed in to change notification settings - Fork 40
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
Allow changing filename on save #100
Milestone
Comments
For the JSON file throughout, and the French/English PDF on the results page. It should pop-open the OS save file dialog, so the user can pick the location and name of the file. |
Instead of using a download link, could we switch it to the File System Access API (when it is available), or maybe a library wrapping this? const saveOptions = {
suggestedName: 'AIA Results.json',
types: [{
description: 'JSON',
accept: {
'application/json': ['.json'],
},
}],
};
const handle = await self.showSaveFilePicker(saveOptions);
const fileHandle = await window.showSaveFilePicker();
const fileStream = await fileHandle.createWritable();
await fileStream.write(new Blob(["CONTENT"], {type: "text/plain"}));
await fileStream.close(); |
MrDeshaies
added a commit
that referenced
this issue
Feb 10, 2022
#100 filename picker on save JSON and PDF
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allow the user to set the name of the file being saved.
The text was updated successfully, but these errors were encountered: