File() constructor in IE and Safari

The File() constructor is not supported in IE and Safari.

Is there a nice solution to this in Angular/JavaScript?

var file = new File(byteArrays, tempfilename, { type: contentType });


Source: javascript

Leave a Reply