问题
I am running IE10, and attemping to enable multiple file uploads from a single html input.
I have gone back to absolute basics, and used example code from w3schoools to test the functionality.
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.
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.
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?
EDIT: 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.
回答1:
As already mentioned by the OP, the issue at hand is most likely a (mis-configured) X-UA-Compatible meta-tag.
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:
- What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do?
- https://caniuse.com/#feat=input-file-multiple
来源:https://stackoverflow.com/questions/18639694/what-can-prevent-ie10-from-accepting-multiple-file-uploads