From 1f08abef368370c6b3e3a39f424f22dbfb329ed5 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 2 Jul 2018 22:24:43 -0700 Subject: [PATCH] Fix an issue where onAllComplete can be called multiple times per addFile() call. _getNotFinished, which is used to determine when to fire the onAllComplete callback, wasn't accounting for files in the UPLOAD_FINALIZING state. For smaller files, this could cause onAllComplete to be called multiple times per set of files passed to addFiles(). Note, the expected result is for onAllComplete() to be called only once per call to addFiles(). --- client/js/uploader.basic.api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/js/uploader.basic.api.js b/client/js/uploader.basic.api.js index 6eaf4919d..b31825d9b 100644 --- a/client/js/uploader.basic.api.js +++ b/client/js/uploader.basic.api.js @@ -982,6 +982,7 @@ return this._uploadData.retrieve({ status: [ qq.status.UPLOADING, + qq.status.UPLOAD_FINALIZING, qq.status.UPLOAD_RETRYING, qq.status.QUEUED, qq.status.SUBMITTING,