File system accessLimited availability
The showOpenFilePicker(), showDirectoryPicker(), and showSaveFilePicker() methods request access to files and directories on the user's device and returns a handle for reading and writing to them.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–85Not supported
86+Supportedsince Oct 20, 2020
Current: 155Edge
12–85Not supported
86+Supportedsince Oct 9, 2020
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
18–131Not supported
132+Supportedsince Jan 14, 2025
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How to use
Not supported in Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: createWritable.
Feature detection
JS · check before using
if ("FileSystemWritableFileStream" in globalThis) {
// FileSystemWritableFileStream is available
} else {
// load a polyfill or use a fallback
}Sub-features
Support for each part of the feature (11). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| FileSystemDirectoryHandle.@@asyncIterator | 86 | 86 | 111 | 16.4 | 109 | 111 | 16.4 |
| FileSystemFileHandle.createWritable | 86 | 86 | 111 | 26 | 109 | 111 | 26 |
| FileSystemHandle.queryPermission | 86 | 86 | ✕ | ✕ | 109 | ✕ | ✕ |
| FileSystemHandle.requestPermission | 86 | 86 | ✕ | ✕ | 109 | ✕ | ✕ |
| FileSystemWritableFileStream | 86 | 86 | 111 | 26 | 109 | 111 | 26 |
| FileSystemWritableFileStream.seek | 86 | 86 | 111 | 26 | 109 | 111 | 26 |
| FileSystemWritableFileStream.truncate | 86 | 86 | 111 | 26 | 109 | 111 | 26 |
| FileSystemWritableFileStream.write | 86 | 86 | 111 | 26 | 109 | 111 | 26 |
| Window.showDirectoryPicker | 86 | 86 | ✕ | ✕ | 132 | ✕ | ✕ |
| Window.showOpenFilePicker | 86 | 86 | ✕ | ✕ | 132 | ✕ | ✕ |
| Window.showSaveFilePicker | 86 | 86 | ✕ | ✕ | 132 | ✕ | ✕ |