FormData in IE 11 not defined

后端 未结 2 1435
天涯浪人
天涯浪人 2021-01-06 07:45

I have the following script to get the file data from a input type of file:

var uploadfiles = $(\"#upFile\").get(0);
var uploadedfiles = uploadfiles.files;

         


        
2条回答
  •  梦毁少年i
    2021-01-06 08:09

    After checking docmode in IE developer tools it turned out it was reverted to 9 for some reason, had an older meta tag for X-UA-Compatible on my master page which I changed to:

    
    

    And FormData had no problems at all.

提交回复
热议问题