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 d17678b5b2
commit 6e72fd5f9f
No known key found for this signature in database
GPG key ID: 9CE5ED29E7FCD38A

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;