Tus10 auto-retry the upload when back online#135
Tus10 auto-retry the upload when back online#135arturi merged 3 commits intotransloadit:masterfrom oliverpool:online-autoretry
Conversation
|
tus-js-client has built-in retries, but not related to This PR seems like a good approach, but it would be cool if we had a second opinion from @Acconut and @kvz maybe. Should this be an uploader plugin setting/feature or global? |
That's right. As you point out, it stops retrying when the navigator is offline.
|
|
Personally, I am in favor of the retryDelays and resumeWhenOnline options, as suggested by @oliverpool. Are you thinking of adding this feature only for the tus uploader or all uploaders? |
|
Two options seem good with me too.
Yeah, that‘s what I’m asking, would it make sense for Multipart and, say future S3 uploader too? |
|
For multipart uploads, only retrying makes sense as this operation is not resumable. In the case of a possible S3 uploader both could be useful. |
|
For me, the main goal of those two options is to guarantee that everything will be done to complete the upload without requiring user action. |
|
I have implemented this for Transloadit's jQuery SDK
Just FYI. 👍 |
|
@tim-kos thanks for sharing! Do you listen to |
|
Merged this, sorry for long delay. Thank you @oliverpool! Let’s test it in battle and add options as we go. |
This PR adds the option (default
true) to "auto-retry" uploads when the use is back online.Only the uploads already started, not completed and not paused are retried.