From 6e72fd5f9f9b816f562a4a2c5ae766d2d336263b 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 ad4d03a1bd..1b85f578f4 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;