Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Also cancel XHR when cancelling uploads
Fixes issue when cancelling a long list of uploads.

Signed-off-by: Vincent Petry <[email protected]>
  • Loading branch information
PVince81 authored and backportbot-nextcloud[bot] committed Nov 18, 2022
commit 0c07d7f19e286b2f95d72e7886f6d3f8c0049da1
9 changes: 9 additions & 0 deletions apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ OC.FileUpload.prototype = {
*/
id: null,

/**
* Upload data structure
*/
data: null,

/**
* Upload element
*
Expand Down Expand Up @@ -337,6 +342,10 @@ OC.FileUpload.prototype = {
return
}
this.aborted = true;
if (this.data) {
// abort running XHR
this.data.abort();
}
this._delete();
},

Expand Down