File System Access API
summary
File System API (formerly File System Access API) exposes file and directory handles to read, write, create and delete files and folders, integrates with JavaScript streams and requires HTTPS plus transient user activation and explicit browser prompts. Chromium browsers enable it (Chrome, Edge, Brave with flags), Mozilla and Safari refuse support. Core methods include createWritable and showOpenFilePicker; pitfalls: no file paths returned so an async generator was written to traverse handles. Practical demo: Photopea prompts and edits files, and a proofβofβconcept streams and zips 10β20 GB clientβside successfully but stays experimental.
AI-written summary Β· about
chapters (14)
- 0:00Introduction and speaker intro
- 1:46File System API name change
- 3:10Accessing local files in browser
- 5:01File API vs File System API
- 8:11Why the File System API matters
- 10:19Key API interfaces and handlers
- 11:42Browser support and security
- 15:18Understanding streams
- 16:19Enabling the API in browsers
- 17:01API limitations and workarounds
- 18:51Practical demo with Photopea
- 21:18Documentation overview
- 23:28GitHub debates and concerns
- 27:02Summary and use cases
