Seems like `upload-cancel` was emitted from dashboard and listed to in xhr-upload only
@@ -563,7 +563,6 @@ module.exports = class Dashboard extends Plugin {
}
const cancelUpload = (fileID) => {
- this.uppy.emit('upload-cancel', fileID)
this.uppy.removeFile(fileID)
@@ -288,13 +288,6 @@ module.exports = class XHRUpload extends Plugin {
})
- this.uppy.on('upload-cancel', (fileID) => {
- if (fileID === file.id) {
- timer.done()
- xhr.abort()
- }
- })
-
this.uppy.on('cancel-all', () => {
timer.done()
xhr.abort()