flutter_uploader icon indicating copy to clipboard operation
flutter_uploader copied to clipboard

Duplication of results in Uploader.result when the event finished with Task ID 3 or 4

Open ramisadek opened this issue 2 years ago • 2 comments

I'm trying to execute some piece of code when the uploader finishes its uploading but it seems it is duplicates due to multi notifications from the plugin that the task has been finished for 4-20 times until it stops at some random point

ramisadek avatar May 26 '22 21:05 ramisadek

It's because the plugin uses CachingStreamHandler. It cached all taskId and send it to flutter when a new event came. I don't really understand the purpose of this cache. Maybe the author can shed the light on this?

romawizard avatar May 31 '22 19:05 romawizard

@ramisadek - did you find a workaround for this? Do you just track on the flutter side that the completion for that task has already been called?

I'm seeing what I believe to be this behavior on android devices, but it happens randomly.

davidbrenner avatar Nov 10 '22 16:11 davidbrenner