FileSystem API – Create Files and Store Them Locally Using JavaScript and Webkit
blogdetailGo Back

FileSystem API – Create Files and Store Them Locally Using JavaScript and Webkit

November 28, 2019 | By August Infotech

The FileSystem-API allows the creation of files and folders as well as their local storage using JavaScript. Files can be simple text files, but even more complex files such as images are possible. Modern Webkit browsers with HTML5 support are already able to handle the FileSystem-API. We show you how you can benefit from the […]

FileSystem API – Create Files and Store Them Locally Using JavaScript and Webkit

FileSystem API – Create Files and Store Them Locally Using JavaScript and Webkit

The FileSystem-API allows the creation of files and folders as well as their local storage using JavaScript. Files can be simple text files, but even more complex files such as images are possible. Modern Webkit browsers with HTML5 support are already able to handle the FileSystem-API. We show you how you can benefit from the new possibilities.

Access Local Filesystems To be able to save files and folders from inside the web browser to the local hard drive you’ll need access to the filesystem. As this means a potential enormous security breach, it is not permitted by default. As a compromise between all or nothing, the FileSystem-API is only allowed to access a specific protected area on your local drive controlled by the browser. It is only this area, you will be allowed to read from and write to. It is not possible to access the whole of the local drive. Still you should be careful in implementing the technology thoroughly as trust will not be widespread, and for good reasons so. N’est ce pas, Monsieur Snowden? The FileSystem-API can make use of local storage in two flavors. Storing can either be done temporarily, per session e.g. or files and folders can be stored permanently. Permanent storage does require the explicit permission by the user. This permission is requested by opening a tooltip below the URL bar, asking for confirmation. Generally, to begin storing files, access to the filesystem needs to be established:

CATEGORIES

Web Application
Contact Us

Let's get acquainted

Do you have everything it takes to transform your existence in the world of the web? Well, that’s why we are here, the white label web agency to be your guide. Make us a part of your core team and enjoy the reign of hits and wows. Be our Guest.

Get in touch
SVG Modal background

Don't just make a living
Make a difference, Take it higher

Close
Close

Get your
free quotation today