flutter_uploader icon indicating copy to clipboard operation
flutter_uploader copied to clipboard

Retry logic

Open ened opened this issue 6 years ago • 6 comments

How does this plugin handle failed uploads due to connectivity issues? From my understanding uploads are currently marked as failed and will not resume?

ened avatar Apr 07 '19 13:04 ened

Yes that's correct, if upload failed due to connectivity, it will raise failed event.

onikiri2007 avatar Apr 26 '19 00:04 onikiri2007

Could this be adjusted with an exponential retry logic? Some files really must be uploaded - and the user will not want to re-upload manually if their internet connection is flaky.

ened avatar May 01 '19 06:05 ened

in order to add above feature, upload probably requires some kind of flag or retry policy to be as parameters so uploader can decide whether to retry exponentially or stop at a certain number of failures. we can also probably introduce like downloader plugin to record and track upload task in the db.

onikiri2007 avatar May 20 '19 08:05 onikiri2007

OK. I will get to it at some point. Currently extending this plugin with support for raw uploads (not only multipart/form-data) and few other bits.

ened avatar May 20 '19 08:05 ened

Thats great looking forward to your pull request :grinning:

onikiri2007 avatar May 20 '19 08:05 onikiri2007

@ened was this ever implemented?

Iradukunda-Nadia avatar Jul 21 '22 12:07 Iradukunda-Nadia