Hi I have the following JS on my page. It is working fine on chrome and firefox. but its not working on Internet Explorer 11. I\'m a salesforce developer and I don\'t know much
In the line:
var xhr = new XMLHttpRequest();
Change for:
var xhr = new ActiveXObject('Msxml2.XMLHTTP');
Now, your file upload work only in Internet Explorer 11.
Maybe, for you file upload to work in all navigator's (that support XMLHTTPRequest), try this:
if('ActiveXObject' in window){
return new ActiveXObject('Msxml2.XMLHTTP');
}else{
return new XMLHttpRequest();
}
Source: http://www.purplesquirrels.com.au/2014/06/local-ajax-calls-ie11/.