Flutter Web Can Now Save Files In Place Using File System Access API
Flutter Web developers can use the File System Access API to write edits directly back to a user's original file, eliminating the repeated duplicate downloads that plague browser-based editors. The API provides a real file handle chosen by the user through the browser's native picker, allowing in-place saves without generating copies like budget(1).csv or budget(2).csv. Handles can be stored in IndexedDB and persisted across sessions, enabling apps to silently reopen a document on reload or prompt a single 'Reopen' button if permission needs reconfirmation. The API is currently supported in Chrome, Edge, and other Chromium-based browsers, so developers are advised to implement an honest fallback — labelled 'Download a copy' rather than 'Save' — for unsupported environments. Security is enforced by design: handles can only be created through user-initiated picker gestures, access is scoped strictly to the chosen file or directory, and permission is revocable at any time.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in