I used accept
to limit selected file type.
but sometimes it failed, e.g. this m4v file.
http://sites.lafayette.edu/newquisk/files/2011/08/ken-video.m4v
<label for="myfile">Select a file:</label>
<input type="file" id="myfile" name="myfile" accept=".mp4">
I thought this setting can only accept *.mp4
file.
but the m4v file is selectable under this condition.
althought type of this file is video/mp4
but doesn't it filter by extension?
I can ignore this file by JavaScript
, but I still want to find a way to make this kinds of file are not selectable in file select popup?