summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-04-06 09:56:41 +0200
committerGitHub <noreply@github.com>2017-04-06 09:56:41 +0200
commit287bae8c5ffd0cba66f2bc0b1f24b1011dbebea0 (patch)
treec2f30984bbdf51c63538798788f00ba005552403 /apps/files
parentb084ceec3d8635b1e91d9db5e640a3016efc88b2 (diff)
parent6e72fd5f9f9b816f562a4a2c5ae766d2d336263b (diff)
downloadnextcloud-server-287bae8c5ffd0cba66f2bc0b1f24b1011dbebea0.tar.gz
nextcloud-server-287bae8c5ffd0cba66f2bc0b1f24b1011dbebea0.zip
Merge pull request #4153 from nextcloud/fix-upload
Fix upload of folders in Chrome
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/file-upload.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index bfb88bc5d20..75d9d0ebdfc 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;