-
Notifications
You must be signed in to change notification settings - Fork 277
Writing to files using File System Access API fails #328
Comments
This is failing in Electron or Chromely? If you meant Chromely, I will suggest you run the same files that succeed in Chrome or Edge in Chromely itself as-is and see what happens. |
I'm running in Chromely
If I open the html file with the js write function in the browser (Chrome) it will save the contents to a file, but running in my Chromely App the same html file it will create the file but it will not write the contents |
@CarlosGabado I am personally not familiar with the library you are using. Others may help. Also see if it has to do with the download handler not implemented: This is also a related issue: If all those links do not help, you may have to include a skeletal project. |
I manage to write files now with the download workaround But writing directly with the File System Access API is not possible |
I had the same issue with the File System Access API. I want to show SaveAs dialog. Do you have any suggestions? |
I have a that reads and writes local files using File System Access API. When run in a browser (Chrome or Edge that support it), both reading and writing files work fine.
When the app is run in Electron, reading works but writing fails due to: Uncaught (in promise) DOMException: The request is not allowed by the user agent or the platform in the current context.
Here the function
`
async function chooseAndWriteToFile(contents) {
const fileHandle = await window.showSaveFilePicker()
`
The text was updated successfully, but these errors were encountered: