Earlier quoted context omitted.
I would argue that you could use a combination of local storage and global state in these web apps to approximate a file system already. Not to mention lazy loading and web workers to cache larger files needed to run a web app. As well as parrelism and currency already offered by web workers.
Approximation is not what it's about. It's about integration. Write that google doc and store it as a local .docx or .odc. Edit that 20 MB raw picture in a browser app and store it back to the disk, instantly, then feed it to a traditional desktop editor. Write that Python script in a Web IDE, store locally, and upload it to an Arduino.
Web Writable Files API: Simplifying Local File Access
51–60 of 115 posts
Re: Web Writable Files API: Simplifying Local File Access
#52One of the great things about browsers is the way you can trust them to be reasonably sandboxed from the rest of your machine. Features like this chip away at that trust model and open up new attack vectors against unsuspecting users. I get the usability benefits, but the security implications are scary. How easy would it be to trick my mother into uploading her profile picture and have the site change that file into…
And more than that, I honestly wonder about the motives of an advertising driven company these days. It feels like 5 years later this will come to bite us in the ass as another way of exploiting access to our computer and data. What if websites start requiring specific files to exist before allowing access?
This isn't just unrestricted filesystem access. The site would need to request file system permission first, _and_ get the user to select the file in a file picker.
In short, that's not a serious concern.
Re: Web Writable Files API: Simplifying Local File Access
#53It's an offline-first app for managing and annotating PDF and web documents.
The idea was that with Electron I can have direct access to the filesystem and be fully integrated into the browser as well.
For the most part it works. The users can easily browse the local filesystem and also access some operating specific features.
But let me tell you -it's rather schizophrenic to use something like Electron. It just doesn't know whether it's a browser or a web server and then there's the issue of dealing with process communication within Electron. Chrome is its own process and node the main process and you have to communicate via message passing - not super fun.
Now we have PWAs and they're far from idea but it might be that an API like this, along with PWAs, and maybe a bit more functionality could replace Electron for building these types of hybrid apps.
Re: Web Writable Files API: Simplifying Local File Access
#54Re: Web Writable Files API: Simplifying Local File Access
#55Is this API needed? I understand the benefits, but web apps or Chrome extensions that _really_ need file access can already use the Native Messaging API and ask the user to install a native app, like here: https://a9t9.com/kantu/x#fileaccess The advantage of an explicit app installation is that users/companies that want to avoid such file access (and the many other things that native apps can do) can simply avoid/blo…
Re: Web Writable Files API: Simplifying Local File Access
#56Re: Web Writable Files API: Simplifying Local File Access
#57Re: Web Writable Files API: Simplifying Local File Access
#58This will be amazing for simple webapps! In a lot of use cases, all you really want is a simple way to read and save a small blob of data. But to achieve this today you would have to do one of: - Save it in local storage, but lose their data if they clear it or use another device. - Build out a REST API backend, but need to also build auth and account management. - Use a backend as service such as firebase, but still…
Re: Web Writable Files API: Simplifying Local File Access
#59I can understand syncing Google Drive and saving stuff there. Or Resilio Sync or any number of other solutions such as Dat.
You Already have filepickers to open and read files. And you can save files as I indicated - via syncing to a service, where you have control of what goes where and it’s still there if you lose the device. And it can be encrypted where the local devices have keys for syncing.
The only new use case I can think of that this enables is overwriting existing files - which is dangerous!
Re: Web Writable Files API: Simplifying Local File Access
#60One of the great things about browsers is the way you can trust them to be reasonably sandboxed from the rest of your machine. Features like this chip away at that trust model and open up new attack vectors against unsuspecting users. I get the usability benefits, but the security implications are scary. How easy would it be to trick my mother into uploading her profile picture and have the site change that file into…
Anyway, more interoperability with the native environment is a good thing. Right now browsers are an alien implant in every operating system that can't communicate with anything else.