aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/file-upload.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 69f9d9d0e63..a0b46e1d03b 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -76,6 +76,11 @@ OC.FileUpload.prototype = {
id: null,
/**
+ * Upload data structure
+ */
+ data: null,
+
+ /**
* Upload element
*
* @type Object
@@ -337,6 +342,10 @@ OC.FileUpload.prototype = {
return
}
this.aborted = true;
+ if (this.data) {
+ // abort running XHR
+ this.data.abort();
+ }
this._delete();
},