<input> 在 Microsoft Edge 中接受属性
<input> accept Attribute in Microsoft Edge
有人知道如何接受在 Edge 中工作吗?
<input type="file" accept=".csv">
在 Chrome 44、Firefox 39、IE 11、Opera 31 中工作正常。
也试过
<input type="file" accept=".csv,text/csv">
"accept" 属性目前在 Microsoft Edge 中绝对不受支持。我确认您的行为在 Edge 中为 "no go",但通过 Edge 右上角的 [...] 显示在 IE 中。
Edge 状态显示为 "Under Consideration",仅在 https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/13661175-full-spec-support-for-accept-in-input-type-file 获得 198 票。
如果您有兴趣在 Edge 上实施 HTTP 客户端提示(又名 "accept"),请务必在上面的 URL 投票。
因为 @mparizeau reported, @JoeHealy 的答案是关于 HTTP Accept
header,这不是问题所在。
回答问题:目前,Edge 不支持 accept
on <input type="file" />
。
曾经有一个错误跟踪器here,现在只是一个 SO 重定向搜索-_-。
无论如何,随着即将推出的新 Microsft Edge (Chromium),这个问题将得到解决。
有人知道如何接受在 Edge 中工作吗?
<input type="file" accept=".csv">
在 Chrome 44、Firefox 39、IE 11、Opera 31 中工作正常。
也试过
<input type="file" accept=".csv,text/csv">
"accept" 属性目前在 Microsoft Edge 中绝对不受支持。我确认您的行为在 Edge 中为 "no go",但通过 Edge 右上角的 [...] 显示在 IE 中。
Edge 状态显示为 "Under Consideration",仅在 https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/13661175-full-spec-support-for-accept-in-input-type-file 获得 198 票。
如果您有兴趣在 Edge 上实施 HTTP 客户端提示(又名 "accept"),请务必在上面的 URL 投票。
因为 @mparizeau reported, @JoeHealy 的答案是关于 HTTP Accept
header,这不是问题所在。
回答问题:目前,Edge 不支持 accept
on <input type="file" />
。
曾经有一个错误跟踪器here,现在只是一个 SO 重定向搜索-_-。 无论如何,随着即将推出的新 Microsft Edge (Chromium),这个问题将得到解决。