accept attribute for file input
Allows a filter to be defined for what type of files a user may pick with from an <input type="file">
dialog
IE | Edge | Firefox | Chrome | Safari | Opera | iOS Safari | Opera Mini | Android Browser | Blackberry Browser | Opera Mobile | Chrome for Android | Firefox for Android | IE Mobile | UC Browser for Android | Samsung Internet | QQ Browser | Baidu Browser |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49 | |||||||||||||||||
56 | 9.3
See notes:
|
4.4
See notes:
|
|||||||||||||||
14 | 52 | 57 | 10
See notes:
|
10.0-10.2
See notes:
|
4.4.3-4.4.4
See notes:
|
4
See notes:
|
|||||||||||
11 | 15 | 53 | 58 | 10.1
See notes:
|
44 | 10.3
See notes:
|
all | 56
See notes:
|
10
See notes:
|
37
See notes:
|
57
See notes:
|
52 | 11
See notes:
|
11.4 | 5
See notes:
|
1.2 | 7.12
See notes:
|
54 | 59 | TP
See notes:
|
45 | ||||||||||||||
55 | 60 | 46 | |||||||||||||||
56 | 61 |
Notes
Not supported means any file can be picked as if the accept
attribute was not set, unless otherwise noted.
On Windows, files that do not apply are hidden. On OSX they are grayed out and disabled.
-
1
Supports the type format (e.g.
image/*
) but not the extension format (e.g..png
) -
2
Offers appropriate file locations/input based on format type, but does not prevent other files from being selected.
-
3
Does not allow any files to be picked at all
-
4
Supports the type format but does not allow any file to be picked when using the extension format