Merge pull request #4154 from nextcloud/stable11-4153

[stable11] Fix upload of folders in Chrome
This commit is contained in:
Joas Schilling 2017-04-06 09:57:16 +02:00 committed by GitHub
commit 392610e3c6
1 changed files with 2 additions and 1 deletions

View File

@ -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;