我有以下代码(fiddle):
<input type="file" accept="application/xml">
在IE 10和Chrome 29.0.1547.76中,它直接过滤XML文件。只有Firefox得到了首先显示所有文件的行为。 Firefox文件对话框也有“.xml”过滤器,但它位于第二个位置。
有没有办法让Firefox使用“.xml”过滤器作为标准过滤器?
答案 0 :(得分:4)
这已经作为Mozilla的一个错误打开了,似乎没有任何动作,所以基本上目前没有办法改变这个:
http://support.mozilla.org/en-US/questions/953914#answer-418899 https://bugzilla.mozilla.org/show_bug.cgi?id=826176