I need to convert a blob to file i javascript.
Im using File API
var blob = new Blob(byteArrays, { type: contentType });
This is r
In IE10 there is no File constructor, but you can use the following in typescript:
private createFile(bytes: string, name: string): File { const file: File = Object.assign(new Blob([bytes]), { lastModifiedDate: new Date(), name: name }); return file; }