From 6918ed9903256656701d63763a38d6efc5bc4b30 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 29 Mar 2017 17:24:28 -0600 Subject: [PATCH] Fix upload of folders in Chrome Signed-off-by: Morris Jobke --- apps/files/js/file-upload.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 508f341f73..8eec8e32a6 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -540,7 +540,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;