From: Morris Jobke Date: Wed, 29 Mar 2017 23:24:28 +0000 (-0600) Subject: Fix upload of folders in Chrome X-Git-Tag: v12.0.0beta1~213^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e72fd5f9f9b816f562a4a2c5ae766d2d336263b;p=nextcloud-server.git Fix upload of folders in Chrome Signed-off-by: Morris Jobke --- diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index ad4d03a1bdb..1b85f578f43 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;