Fix upload of folders in Chrome

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2017-03-29 17:24:28 -06:00
parent ca08ab9bd9
commit 6918ed9903
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
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;