Skip to content

Commit bf82ee3

Browse files
Add features for <input type="file" multiple> and<input type="file" webkitdirectory> (#3486)
Co-authored-by: Patrick Brosset <[email protected]>
1 parent 9a29392 commit bf82ee3

8 files changed

+112
-205
lines changed

features/draft/file-and-directory-entries.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

features/draft/file-and-directory-entries.yml.dist

Lines changed: 0 additions & 149 deletions
This file was deleted.

features/input-file-multiple.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: '<input type="file" multiple>'
2+
description: The `<input type="file" multiple>` HTML element shows a file picker from which users can choose one or more files to upload with a form.
3+
spec: https://html.spec.whatwg.org/multipage/input.html#attr-input-multiple
4+
caniuse: input-file-multiple
5+
group:
6+
- forms
7+
- file-system
8+
status:
9+
compute_from:
10+
- api.HTMLInputElement.multiple
11+
- html.elements.input.multiple
12+
compat_features:
13+
- api.HTMLInputElement.multiple
14+
- api.HTMLInputElement.webkitEntries
15+
# The `multiple` attribute could be part of input-email-tel-url, but requires
16+
# a solution to https://github.com/web-platform-dx/web-features/issues/1173
17+
- html.elements.input.multiple
18+
# These interfaces are plausibily part of this feature, but the upstream data is not right.
19+
# See https://github.com/mdn/browser-compat-data/issues/19304
20+
# - api.FileSystemDirectoryEntry
21+
# - api.FileSystemDirectoryReader
22+
# - api.FileSystemEntry
23+
# - api.FileSystemFileEntry
24+
# - api.FileSystem
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Generated from: input-file-multiple.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: high
6+
baseline_low_date: 2015-07-29
7+
baseline_high_date: 2018-01-29
8+
support:
9+
chrome: "2"
10+
chrome_android: "18"
11+
edge: "12"
12+
firefox: "3.6"
13+
firefox_android: "4"
14+
safari: "4"
15+
safari_ios: "3.2"
16+
compat_features:
17+
# ⬇️ Same status as overall feature ⬇️
18+
# baseline: high
19+
# baseline_low_date: 2015-07-29
20+
# baseline_high_date: 2018-01-29
21+
# support:
22+
# chrome: "2"
23+
# chrome_android: "18"
24+
# edge: "12"
25+
# firefox: "3.6"
26+
# firefox_android: "4"
27+
# safari: "4"
28+
# safari_ios: "3.2"
29+
- api.HTMLInputElement.multiple
30+
- html.elements.input.multiple
31+
32+
# baseline: false
33+
# support:
34+
# chrome: "22"
35+
# chrome_android: "25"
36+
# edge: "79"
37+
# firefox: "50"
38+
# safari: "11.1"
39+
# safari_ios: "11.3"
40+
- api.HTMLInputElement.webkitEntries
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: <input type="file" webkitdirectory>
2+
description: The `<input type="file" webkitdirectory>` HTML element shows a file picker from which users can choose a folder to upload with the form.
3+
spec: https://wicg.github.io/entries-api/#html-forms
4+
caniuse: input-file-directory
5+
group:
6+
- forms
7+
- file-system
8+
compat_features:
9+
- api.File.webkitRelativePath
10+
- html.elements.input.webkitdirectory
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Generated from: input-file-webkitdirectory.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: low
6+
baseline_low_date: 2025-08-19
7+
support:
8+
chrome: "13"
9+
chrome_android: "132"
10+
edge: "13"
11+
firefox: "50"
12+
firefox_android: "142"
13+
safari: "11.1"
14+
safari_ios: "18.4"
15+
compat_features:
16+
# baseline: low
17+
# baseline_low_date: 2025-07-22
18+
# support:
19+
# chrome: "7"
20+
# chrome_android: "132"
21+
# edge: "13"
22+
# firefox: "50"
23+
# firefox_android: "141"
24+
# safari: "11.1"
25+
# safari_ios: "18.4"
26+
- html.elements.input.webkitdirectory
27+
28+
# baseline: low
29+
# baseline_low_date: 2025-08-19
30+
# support:
31+
# chrome: "13"
32+
# chrome_android: "18"
33+
# edge: "13"
34+
# firefox: "50"
35+
# firefox_android: "142"
36+
# safari: "11.1"
37+
# safari_ios: "11.3"
38+
- api.File.webkitRelativePath

features/input.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ compat_features:
2727
- api.HTMLInputElement.list
2828
- api.HTMLInputElement.maxLength
2929
- api.HTMLInputElement.minLength
30-
- api.HTMLInputElement.multiple
3130
- api.HTMLInputElement.name
3231
- api.HTMLInputElement.pattern
3332
- api.HTMLInputElement.placeholder
@@ -58,7 +57,6 @@ compat_features:
5857
- html.elements.input.list
5958
- html.elements.input.maxlength
6059
- html.elements.input.minlength
61-
- html.elements.input.multiple
6260
- html.elements.input.name
6361
- html.elements.input.pattern
6462
- html.elements.input.placeholder

features/input.yml.dist

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,6 @@ compat_features:
9393
# safari_ios: "1"
9494
- api.HTMLInputElement.select_event
9595

96-
# baseline: high
97-
# baseline_low_date: 2015-07-29
98-
# baseline_high_date: 2018-01-29
99-
# support:
100-
# chrome: "2"
101-
# chrome_android: "18"
102-
# edge: "12"
103-
# firefox: "3.6"
104-
# firefox_android: "4"
105-
# safari: "4"
106-
# safari_ios: "3.2"
107-
- api.HTMLInputElement.multiple
108-
- html.elements.input.multiple
109-
11096
# baseline: high
11197
# baseline_low_date: 2015-07-29
11298
# baseline_high_date: 2018-01-29

0 commit comments

Comments
 (0)