]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix upload of folders in Chrome 4153/head
authorMorris Jobke <hey@morrisjobke.de>
Wed, 29 Mar 2017 23:24:28 +0000 (17:24 -0600)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 6 Apr 2017 05:50:58 +0000 (00:50 -0500)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
apps/files/js/file-upload.js

index ad4d03a1bdb00dcfd7a4b86146ca15b139c63cc9..1b85f578f4324481d51814941f778a86f4ac09de 100644 (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;