-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onwriteend callback not called #1
Comments
I'm also having this issue. I'm unsure if I missed something obvious or it really is too late by the time I passed onwriteend function... |
Since I can't actually tell when a file is finished writing to the user's filesystem this method isn't really possible to implement so it's going to just be for show in the meanwhile. I'll probably remove onwriteend altogether at a later time. |
Pull from upstream
Old issue, I know... But StreamSaver.js is able to do this. Will only work in chrome atm const fileStream = streamSaver.createWriteStream('filename.txt')
const blobStream = streamSaver.createBlobReader(blob)
blobStream.pipeTo(fileStream).then(() => {
console.log("done")
}) |
is there any progress made over the years? Perhaps some new Browser features which allow this now? |
Filesaver is sync so no there is none and never will be included in this lib. However, this might help you do async wires and do progress monitor |
Hello, I am planning to use HTML5(where supported) as an alternative to Downloadify in the custom download builder for the jQuery Lifestream plugin. So, because I am still new to the various File APIs I started to use your script.
I need to monitor the download completion. I followed your relative code snippet example:
but the callback was never called because the event is fired before its registration.
I patched the script in this way:
Is there a better/proper way to do this?
Thanks in advance.
The text was updated successfully, but these errors were encountered: