什么会阻止IE10接受多个文件上传 [英] What can prevent IE10 from accepting multiple file uploads
问题描述
我正在运行IE10,并试图从单个html输入启用多个文件上传.
I am running IE10, and attemping to enable multiple file uploads from a single html input.
我回到了绝对的基础知识,并使用了w3schoools的示例代码来测试功能.
I have gone back to absolute basics, and used example code from w3schoools to test the functionality.
如果我去这里: http://www.w3schools.com/tags /tryit.asp?filename=tryhtml5_input_multiple 并单击浏览,我可以选择多个文件.
If I go here: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_multiple and click browse, I am able to select multiple files.
如果我复制所有代码并将其粘贴到内部网络服务器上的空html文档中,然后导航至该页面,则无法选择多个文件.
If I copy all of the code and paste into an empty html document on my internal webserver, and navigate to that page, I can not select multiple files.
是否有一些IE安全设置可以根据站点区域或安全性等阻止此功能?还是可能是Apache 2.2.4中的一项设置禁用了此功能?
Is there some IE security setting that can prevent this ability based on site zone or security etc? Or perhaps a setting within Apache 2.2.4 that disables this?
我刚刚在本地使用chrome测试了相同的代码,并且工作正常,因此假定它不是我的Web服务器,而是IE10中的某些设置.
I have just tested the same code locally with chrome, and it works fine, so assume it is not my web server, but some setting in IE10.
推荐答案
正如OP所提到的,眼前的问题很可能是(错误配置的)X-UA-Compatible
元标记.
As already mentioned by the OP, the issue at hand is most likely a (mis-configured) X-UA-Compatible
meta-tag.
除了非常特殊的情况外,我建议现在完全删除X-UA-Compatible
标签.
I suggest to remove the X-UA-Compatible
tag altogether these days, except for very specific edge cases.
我已经通过这种方式成功启用"了旧应用程序的多文件上传.详细信息:
I have successfully "enabled" multi-file upload for a legacy application this way. More details:
- 什么是< meta http-equiv =与X-UA兼容" content ="IE = edge"会吗?
- https://caniuse.com/#feat=input-file-multiple
- What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do?
- https://caniuse.com/#feat=input-file-multiple
这篇关于什么会阻止IE10接受多个文件上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!