File () constructor in IE and Safari

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

Is there a good solution for this in Angular / JavaScript?

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

Can I create the file in other ways that is supported by IE Safari?

0
javascript angularjs
source share
1 answer

If you absolutely need or need to use the File API, the mOxie polyfill suggested by CanIUse .

+1
source share

All Articles