I have a problem with creating File object in Microsoft Edge. In Chrome it works perfectly.
var generatedFile = new window.File(["Rough Draft ...."], "Draft1.txt", {type: "text/plain", lastModified: new Date()})
I have a problem with creating File object in Microsoft Edge. In Chrome it works perfectly.
var generatedFile = new window.File(["Rough Draft ...."], "Draft1.txt", {type: "text/plain", lastModified: new Date()})
The file constructor isn't yet supported in Microsoft Edge. View relevant caniuse page.
A possible workaround (which worked for me) is to use the Blob constructor. As described here.