diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 648a5a0307bd8..fbbcea44fe34d 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -75,6 +75,11 @@ OC.FileUpload.prototype = { */ id: null, + /** + * Upload data structure + */ + data: null, + /** * Upload element * @@ -337,6 +342,10 @@ OC.FileUpload.prototype = { return } this.aborted = true; + if (this.data) { + // abort running XHR + this.data.abort(); + } this._delete(); },