react-native-uploader
react-native-uploader copied to clipboard
How do you deal with multiple upload events
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
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