Reputation:
According to MDN accept=[MIME type]
is supported in Firefox. However, I tried the following to no avail:
<input type="file" accept="text/html">
It doesn't filter the HTML
files: demo.
Is it a bug or am I missing something?
Upvotes: 7
Views: 2134
Reputation: 13709
This is a known Firefox bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=826185
Fortunately, it appears there is a patch for the issue that should be reviewed soon.
Upvotes: 2