You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hm I really like this idea, but I'm struggling a bit with where this line should be for the library itself. How would you feel about us exposing the tools to be able to build this yourself? My first thought is we expose more details about the "chunk mapping" for lack of a better phrase, then make sure to include more details about which chunks were successfully completed via events. From there we'd just need a way of configuring which chunk to start at when initializing the upload.
I think that sounds about right, we already have the attempt and attemptFailure events which allow us to store the index of the last successful chunk upload.
What I did is simply add this line to the UpChunk constructor:
this.chunkCount = options.beginAtChunk || 0; and IOptions beginAtChunk ?: number;
With that in place I was able to resume a download from the last uploaded chunk successfully.
This will allow downloads to resume after a page reload or different client.
The text was updated successfully, but these errors were encountered: