News for hackers. Stuff that matters.
Re:Firefox 111.0 enabled Origin private file system access by eshnil on Wednesday March 15, 2023 @06:12AM (#35166012)
Saving a file is easily implementable without a Filesystem access API. See https://draw.io/ as an example.
Re:Firefox 111.0 enabled Origin private file system access by esperent on Wednesday March 15, 2023 @06:20AM (#35166057)
Draw.io's local file saving is clunky as hell and I'm sure even that was an absolute pain for them to get working.
Re:Firefox 111.0 enabled Origin private file system access by eshnil on Wednesday March 15, 2023 @11:24AM (#35169744)
I actually implemented it recently in one of my open-source apps. It's 6 lines of Javascript: Create an <a> element, set the data in its href with:

element.setAttribute("href","data:text/plain;charset=utf-8," +encodeURIComponent(content))

and element.click() followed by document.body.removeChild(element);

This works perfectly fine for saving single files. FileSystem access API is useful when entire directory needs to be stored and perhaps without the standard SaveAs.. UI.

Re:Firefox 111.0 enabled Origin private file system access by c-hendricks on Wednesday March 15, 2023 @04:08PM (#35174030)
Those users probably didn't need their RAM anyways