TypeError: Object doesn't support this action in IE 11 TypeError: Object doesn't support this action in IE 11 angularjs angularjs

TypeError: Object doesn't support this action in IE 11


Link to original answer

To paraphrase the link, IE 11 does NOT support new File() constructor, so you'll have to use a blob instead. Here is a basic example:

var myArr = ["Hello", "World", "123", "Howdy"];var b = new Blob([JSON.stringify(myArr)], {type: "text/plain;charset=utf-8"});window.navigator.msSaveBlob(b, "OutputFile.txt");

And now you should receive a download prompt.