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

IE

  1. 5.5 - 9
  2. 10
  3. 11

Edge

  1. 12 - 18
  2. 79 - 81
  3. 83

Firefox

  1. 2 - 3.6
  2. 4 - 36
  3. 37 - 77
  4. 78
  5. 79 - 80

Chrome

  1. 4
  2. 5 - 8
  3. 9 - 20
  4. 21 - 25
  5. 26 - 81
  6. 83
  7. 84 - 86

Safari

  1. 3.1 - 5.1
  2. 6 - 11
  3. 11.1 - 13
  4. 13.1
  5. 14 - TP

Opera

  1. 9 - 12.1
  2. 15 - 68
  3. 69

iOS Safari

  1. 3.2 - 5.1
  2. 6 - 7.1
  3. 8 - 13.3
  4. 13.4
  5. 14.0

Opera Mini

  1. all

Android Browser

  1. 2.1 - 2.3
  2. 3 - 4.3
  3. 4.4 - 4.4.4
  4. 81

Blackberry Browser

  1. 7
  2. 10

Opera Mobile

  1. 10 - 12.1
  2. 46

Chrome for Android

  1. 81

Firefox for Android

  1. 68

IE Mobile

  1. 10
  2. 11

UC Browser for Android

  1. 12.12

Samsung Internet

  1. 4 - 11.2
  2. 12.0

QQ Browser

  1. 10.4

Baidu Browser

  1. 7.12

KaiOS Browser

  1. 2.5

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:
Microsoft Edge feature request on UserVoice
Demo & information