react-native-fs icon indicating copy to clipboard operation
react-native-fs copied to clipboard

Simultaneous uploads returning all upload progress states rather than just the matching jobId's progress.

Open Laurencarne opened this issue 5 years ago • 3 comments

Similar issue: #811

The similar issue above was for the downloadFile, begin and progress callbacks.

Our issue is similar however is involving the uploadFile event. In our app when uploading files we show a progress bar to the user by calling the progress callback. The progress bars then jump around all over the place when uploading multiple files as we are getting the progress for all simultaneous uploads.

Problem When calling uploadFile multiple different times, the begin and progress callbacks return for all events and not just the event they relate too.

Solution Added a condition inside the event listener to validate the jobId before passing the event callback.

Laurencarne avatar Oct 27 '20 17:10 Laurencarne

Same here. This should be merged

seancheung avatar Jun 03 '21 05:06 seancheung

Start a new uploading task right after aborting the previous one will also trigger messed-up callbacks

seancheung avatar Jun 04 '21 02:06 seancheung

Same experience here, would be awesome if this could be merged @itinance =)

k1mmm avatar Aug 20 '22 19:08 k1mmm