summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/js/file-upload.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index bfb88bc5d20..75d9d0ebdfc 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -537,7 +537,8 @@ OC.Uploader.prototype = _.extend({
getUpload: function(data) {
if (_.isString(data)) {
return this._uploads[data];
- } else if (data.uploadId) {
+ } else if (data.uploadId && this._uploads[data.uploadId]) {
+ this._uploads[data.uploadId].data = data;
return this._uploads[data.uploadId];
}
return null;