<输入>在Microsoft Edge中接受属性 [英] <input> accept Attribute in Microsoft Edge
问题描述
有人知道如何在Edge中工作吗?
Anyone know how to get accept working in Edge?
<input type="file" accept=".csv">
在Chrome 44,Firefox 39,IE 11,Opera 31中可以正常工作.
Works fine in Chrome 44, Firefox 39, IE 11, Opera 31.
也尝试过
<input type="file" accept=".csv,text/csv">
推荐答案
为 @JoeHealy 的答案与HTTP Accept
标头有关,问题是什么.
As @mparizeau reported, @JoeHealy's answr is about HTTP Accept
header, which is not what the question is about.
要回答这个问题:目前,<input type="file" />
上的Edge 不支持 accept
.
To answer the question: at the moment, Edge does not support accept
on <input type="file" />
.
曾经有一个错误跟踪器此处,现在只是SO重定向搜索-_-. 无论如何,随着即将推出的新Microsft Edge(Chromium),此问题将得到解决.
There used to be a bug tracker here, now it's just a SO redirected search -_-. Anyway, with the upcoming new Microsft Edge (Chromium) this issue will be resolved.
这篇关于<输入>在Microsoft Edge中接受属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!