-
How can I detect all batches are completed? I need something like when first batch is started I will show alert to user and when the last batch is finalized then will show alert upload completed. Could you kindly help me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @savasgok |
Beta Was this translation helpful? Give feedback.
Hi @savasgok
You can use the BATCH-START event (useBatchStartListener) or BATCH-ADD (useBatchAddListener) and BATCH-FINISH (useBatchFinishListener) to keep track of how many batches started and how many finished (in your application's state). When the finished count reaches the started count, you can consider the upload complete at that point (until new uploads are added).