Merge pull request #4153 from nextcloud/fix-upload

Fix upload of folders in Chrome
This commit is contained in:
Joas Schilling 2017-04-06 09:56:41 +02:00 committed by GitHub
commit 287bae8c5f
1 changed files with 2 additions and 1 deletions

View File

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