We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e80f04 + feda03b commit b4ab2a9Copy full SHA for b4ab2a9
1 file changed
apps/files/js/file-upload.js
@@ -75,6 +75,11 @@ OC.FileUpload.prototype = {
75
*/
76
id: null,
77
78
+ /**
79
+ * Upload data structure
80
+ */
81
+ data: null,
82
+
83
/**
84
* Upload element
85
*
@@ -337,6 +342,10 @@ OC.FileUpload.prototype = {
337
342
return
338
343
}
339
344
this.aborted = true;
345
+ if (this.data) {
346
+ // abort running XHR
347
+ this.data.abort();
348
+ }
340
349
this._delete();
341
350
},
351
0 commit comments