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

How do you deal with multiple upload events

Open mschipperheyn opened this issue 9 years ago • 1 comments

I'm trying to understand how it would work if the upload action is for multiple files but these actions happen in parallel (one file at a time). How do I identify for which file the upload progress is and how do I cancel an individual upload

mschipperheyn avatar Oct 24 '16 00:10 mschipperheyn

I would suggest that you return a unique id from RNUploader.upload method, that you also pass in subsequent progress and file objects. This way, we can keep track of multiple uploader processes that occur in parallel. Kind of like a transactionid

mschipperheyn avatar Oct 24 '16 12:10 mschipperheyn