Closed oliverroick closed 4 months ago
Implements re-trying for failing chunk uploads.
I took the AWS example and implemented it the following way
sendNext
parts
sendChunk
complete
Implements re-trying for failing chunk uploads.
I took the AWS example and implemented it the following way
sendNext
starts a new chunk upload. It pops on element form theparts
array and starts the upload by callingsendChunk
.sendChunk
initialises the XHR object and returns a promise that resolves if the upload succeeds and rejects when not.parts
and callsendNext
after a short timeout.complete
to wrap up the upload.