Closed jinshengli closed 4 years ago
Try changing this:
- window.writer = fileStream.getWriter();
+ const writer = fileStream.getWriter();
ps, if you like you could try the saving-multiple-files example and save everything as one zip file
Thank you. It work.
et fileStream = streamSaver.createWriteStream(fileName);
@jinshengli the change suggested by @jimmywarting work( changing window.writer
to writer
)? Or did you use the saving-multiple-files option instead?
This worked for me with the suggested typo fix
I had a problem downloading multiple files in a loop. The firefox Browser error: TypeError: The stream (in closed state) is not in the writable state and cannot be closed.
I can only download the first file. After that faile. I canot find a good way
my code:
url: [ {fileName: url } ]