Baseline Newly DOM API
api.HTMLInputElement.webkitdirectory
Granular MDN Browser Compat Data support history across 13 tracked browsers.
Specification Area
DOM API
Standard track
First Core Launch
Chrome 7
2010-10-19
Core-3 Stability
2,732d (7.5y)
Last: Safari (2018-04-12)
Baseline Feature
Newly
<input type="file" webkitdirectory>
Browser Support Timeline
Notes (4)
Chr And, WV And: In Chrome for Android 131, if a user selects a directory, the browser crashes (see bug 376834374).Chr And, WV And, Samsung, Op And, Quest: The property reflects the attribute, but users cannot choose a directory, only individual files (see bug 40248532.FF And:File entries returned for a selected directory have an empty string for webkitRelativePath (bug 1973726).Saf iOS, WV iOS: The property can be set, but has no effect (see bug 271705).Full Browser Compatibility Table
| Browser | Type | Version | Release Date | Status / Caveats |
|---|---|---|---|---|
| Chrome | desktop | 7 | 2010-10-19 | Supported |
| Firefox | desktop | 50 | 2016-11-15 | Supported |
| Safari | desktop | 11.1 | 2018-04-12 | Supported |
| Edge | desktop | 13 | 2015-11-12 | Supported |
| Chrome Android | mobile | 132 | 2025-01-14 | Supported |
| Firefox for Android | mobile | 142 | 2025-08-19 | Supported |
| Safari on iOS | mobile | 18.4 | 2025-03-31 | Supported |
| WebView Android | mobile | 132 | 2025-01-14 | Supported |
| WebView on iOS | mobile | 18.4 | 2025-03-31 | Supported |
| Samsung Browser | mobile | 29.0 | 2025-10-25 | Supported |
| Opera | desktop | 15 | 2013-07-02 | Supported |
| Opera Android | mobile | 87 | 2025-01-22 | Supported |
| Deno | server | — | — | — |
| Node.js | server | — | — | — |
| Bun | server | — | — | — |
| Quest Browser | xr | 37 | 2025-02-14 | Supported |
| Internet Explorer | desktop | — | — | — |