JavaScript: store and read files with the Origin Private File System
In this post you will learn how to use the Origin Private File System with JavaScript to store, read and remove any file on the web browser. You may try the demo here: https://stackblitz.com/edit/vitejs-vite-hl34zf?file=index.html As I said before, the Origin Private File System has arrived to revolutionize things with JavaScript. Thanks to OPFS we can have a complete file system with JavaScript directly in the web browser. With this new technology, we can write any type of file in the web browser, as well as download it later. All of this without depending on localStorage or similar things; It is a different technology. Text documents, images, videos and even databases can be saved, and there is no need to ask the user for permission or confirmation, everything is transparent. ...