According to MDN accept=[MIME type] is supported in Firefox. However, I tried the following to no avail: Code: <input type="file" accept="text/html"> It doesn't filter the HTML files: demo. Is it a bug or am I missing something?
accept=[MIME type]
<input type="file" accept="text/html">
Hi there Rain Lover, I am pleased to comfirm that you are not missing something. Bug 826176 - File extension support for <input accept=...> coothead
Rain Lover (05-11-2014)
Originally Posted by coothead Hi there Rain Lover, I am pleased to comfirm that you are not missing something. Bug 826176 - File extension support for <input accept=...> coothead Thanks for the link!
No problem, you're very welcome. coothead
Forum Rules
Bookmarks