api.HTMLInputElement.webkitdirectory

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Chrome version 7 on 2010-10-19

In Chrome Android version 132 on 2025-01-14 Note: In Chrome for Android 131, if a user selects a directory, the browser crashes (see bug 376834374). The property reflects the attribute, but users cannot choose a directory, only individual files (see bug 40248532.

In Edge version 13 on 2015-11-12

In Firefox version 50 on 2016-11-15

In Firefox for Android version 142 on 2025-08-19 Note: File entries returned for a selected directory have an empty string for webkitRelativePath (bug 1973726).

Not in Internet Explorer

In Quest Browser version 5.0 on undefined Note: The property reflects the attribute, but users cannot choose a directory, only individual files (see bug 40248532.

In Opera version 15 on 2013-07-02

In Opera Android version 87 on 2025-01-22 Note: The property reflects the attribute, but users cannot choose a directory, only individual files (see bug 40248532.

In Safari version 11.1 on 2018-04-12

In Safari on iOS version 18.4 on 2025-03-31 Note: The property can be set, but has no effect (see bug 271705).

In Samsung Internet version 29.0 on 2025-10-25 Note: The property reflects the attribute, but users cannot choose a directory, only individual files (see bug 40248532.

In WebView Android version 132 on 2025-01-14 Note: In Chrome for Android 131, if a user selects a directory, the browser crashes (see bug 376834374). The property reflects the attribute, but users cannot choose a directory, only individual files (see bug 40248532.

In WebView on iOS version 18.4 on 2025-03-31 Note: The property can be set, but has no effect (see bug 271705).