Re: [whatwg/fetch] Allow a ReadableByteStream in `fetch({body: <body>})` (#577)

@ConradIrwin 

> How does the XmlHttpRequest upload progress event work? I naively assumed it was just periodically pinging me with the number of bytes that had been ACKed by the upstream server. (I'm uploading to Google Cloud Storage, and it seemed to work automatically).
> 
> I was hoping the same would happen for fetch() where I could see at a low level what bytes were written to the network, and when.

Have not tried the service that you mentioned. If you are able to implement code at server side to read the `POST` body you can try using the approach described at [How to read and echo file size of uploaded file being written at server in real time without blocking at both server and client?](https://stackoverflow.com/q/42475492) which utilizes `EventSource` to stream the number of bytes read at server to client.

Related https://github.com/whatwg/fetch/issues/439

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/577#issuecomment-325133629

Received on Saturday, 26 August 2017 14:38:15 UTC