accept attribute for file input

- LS

Allows a filter to be defined for what type of files a user may pick with from an <input type="file"> dialog

Chrome

  1. 4: Not supported
  2. 5 - 8: Support unknown
  3. 9 - 20: Partial support
  4. 21 - 25: Support unknown
  5. 26 - 107: Supported
  6. 108: Supported
  7. 109 - 111: Supported

Edge

  1. 12 - 18: Not supported
  2. 79 - 106: Supported
  3. 107: Supported

Safari

  1. 3.1 - 5.1: Not supported
  2. 6 - 11: Partial support
  3. 11.1 - 16.0: Supported
  4. 16.1: Supported
  5. 16.2 - TP: Supported

Firefox

  1. 2 - 3.6: Not supported
  2. 4 - 36: Partial support
  3. 37 - 106: Supported
  4. 107: Supported
  5. 108 - 109: Supported

Opera

  1. 9 - 12.1: Not supported
  2. 15 - 91: Supported
  3. 92: Supported

IE

  1. 5.5 - 9: Not supported
  2. 10: Supported
  3. 11: Supported

Chrome for Android

  1. 107: Partial support

Safari on iOS

  1. 3.2 - 5.1: Not supported
  2. 6 - 7.1: Not supported
  3. 8 - 16.0: Partial support
  4. 16.1: Partial support

Samsung Internet

  1. 4 - 18.0: Partial support
  2. 19.0: Partial support

Opera Mini

  1. all: Not supported

Opera Mobile

  1. 10 - 12.1: Not supported
  2. 72: Not supported

UC Browser for Android

  1. 13.4: Not supported

Android Browser

  1. 2.1 - 2.3: Not supported
  2. 3 - 4.3: Partial support
  3. 4.4 - 4.4.4: Not supported
  4. 107: Not supported

Firefox for Android

  1. 106: Not supported

QQ Browser

  1. 13.1: Partial support

Baidu Browser

  1. 13.18: Partial support

KaiOS Browser

  1. 2.5: Supported

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.

Resources:
Demo & information