Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

onAutoRetry event should allow returning boolean to prevent further retries #2018

Open
2 of 5 tasks
DanielWare opened this issue Jun 22, 2018 · 2 comments
Open
2 of 5 tasks

Comments

@DanielWare
Copy link

Type of issue

  • Bug report
  • Feature request

Uploader type

  • Traditional
  • S3
  • Azure
Feature Request onAutoRetry should allow returning true/false to allow/prevent further retries

Feature request details

Sometimes logic on the client side will need to make decisions about whether to continue trying to upload a failed/failing upload. Currently there is no way to make intelligent decisions about when to keep retrying and when to fail the upload. We have to either set uploads retry attempts to 10000 and try forever or set it to 10 and possibly fail an upload on a poor connection even if it would have completed with more attempts.

@rnicholus
Copy link
Member

rnicholus commented Jun 29, 2018

Why not just use a sensible value and just ask your users to manually retry? If you need to retry an upload 10 times, there are other, more important issues to solve besides this one.

@DanielWare
Copy link
Author

There are many client side connection issues that can’t be solved from the developers end. What about especially large files on poor connections? Users don’t want to sit and stare at an upload screen for an hour clicking retry every time their connection gets reset. By allowing a Boolean return, devs can check other factors (to see if there is a connection at all, etc) and determine if the current upload should continue or fail.

Alternatively being able to set the upload status to upload_failed by api would work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants