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 - 130: Supported
  6. 131: Supported
  7. 132 - 134: Supported

Edge

  1. 12 - 18: Not supported
  2. 79 - 130: Supported
  3. 131: Supported

Safari

  1. 3.1 - 5.1: Not supported
  2. 6 - 11: Partial support
  3. 11.1 - 18.0: Supported
  4. 18.1: Supported
  5. 18.2 - TP: Supported

Firefox

  1. 2 - 3.6: Not supported
  2. 4 - 36: Partial support
  3. 37 - 132: Supported
  4. 133: Supported
  5. 134 - 136: Supported

Opera

  1. 9 - 12.1: Not supported
  2. 15 - 113: Supported
  3. 114: Supported

IE

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

Chrome for Android

  1. 131: Partial support

Safari on iOS

  1. 3.2 - 5.1: Not supported
  2. 6 - 7.1: Not supported
  3. 8 - 18.0: Partial support
  4. 18.1: Partial support
  5. 18.2: Partial support

Samsung Internet

  1. 4 - 25: Partial support
  2. 26: Partial support

Opera Mini

  1. all: Not supported

Opera Mobile

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

UC Browser for Android

  1. 15.5: 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. 131: Not supported

Firefox for Android

  1. 132: Not supported

QQ Browser

  1. 14.9: Partial support

Baidu Browser

  1. 13.52: Partial support

KaiOS Browser

  1. 2.5: Supported
  2. 3: 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