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 - 123: Supported
  6. 124: Supported
  7. 125 - 127: Supported

Edge

  1. 12 - 18: Not supported
  2. 79 - 122: Supported
  3. 123: Supported

Safari

  1. 3.1 - 5.1: Not supported
  2. 6 - 11: Partial support
  3. 11.1 - 17.3: Supported
  4. 17.4: Supported
  5. 17.5 - TP: Supported

Firefox

  1. 2 - 3.6: Not supported
  2. 4 - 36: Partial support
  3. 37 - 124: Supported
  4. 125: Supported
  5. 126 - 128: Supported

Opera

  1. 9 - 12.1: Not supported
  2. 15 - 108: Supported
  3. 109: Supported

IE

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

Chrome for Android

  1. 123: Partial support

Safari on iOS

  1. 3.2 - 5.1: Not supported
  2. 6 - 7.1: Not supported
  3. 8 - 17.3: Partial support
  4. 17.4: Partial support
  5. 17.5: Partial support

Samsung Internet

  1. 4 - 23: Partial support
  2. 24: 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. 123: Not supported

Firefox for Android

  1. 124: 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