-
Notifications
You must be signed in to change notification settings - Fork 8
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
streams as a replacement for progress events... what about upload progress? #24
Comments
The plan is to have uploads be represented by a writable stream that you write to. Then you know the progress: it's the number of bytes you've written divided by the total number of bytes you plan to write. |
Imagine a user has a Blob Chrome is able to send a Blob efficiently but creating a ReadableStream from the Blob and sending the ReadableStream manually will disable the optimization. Hence I would like to have a means to receive progress events while sending a Blob directly. |
F2F:
|
Not sure if this is settled or not, but wanted to throw my perspective in. As an implementer I'd really like progress to be a separate API from the body stream. In order to implement streaming without a perf penalty we need to do some amount of internal buffering. In contrast, progress events currently attempt to provide status based on bytes that are read/write at the OS-level syscalls. Obviously this does not play well with any internal buffering. So in my mind we must pick one of these:
|
Yes much needed feature for trace the upload progress. I hope to see that feature in future release. |
Has there been any updates in a year? Working examples? |
I haven't worked on this issue. Is whatwg/fetch#65 related? |
I think we're still waiting for experimentation on top of streams before figuring out exactly what to expose. |
It's clear that you could consume a streaming response body at chunk intervals, as a replacement for progress events.
But this doesn't exactly help if you wanted to track the progress of an upload. Just wondering if anyone has had any ideas about that.
The text was updated successfully, but these errors were encountered: