issues
search
transloadit
/
uppy
The next open source file uploader for web browsers :dog:
https://uppy.io
MIT License
29.23k
stars
2.01k
forks
source link
tus: Avoid duplicate `upload-error` event
#5485
Closed
Acconut
closed
1 month ago
Acconut
commented
1 month ago
Fixes
https://github.com/transloadit/uppy/issues/5473
.
github-actions[bot]
commented
1 month ago
Diff output files
```diff diff --git a/packages/@uppy/tus/lib/index.js b/packages/@uppy/tus/lib/index.js index f37e9f5..d00dd5a 100644 --- a/packages/@uppy/tus/lib/index.js +++ b/packages/@uppy/tus/lib/index.js @@ -206,7 +206,6 @@ function _uploadLocalFile2(file) { } this.resetUploaderReferences(file.id); (_queuedRequest = queuedRequest) == null || _queuedRequest.abort(); - this.uppy.emit("upload-error", file, err); if (typeof opts.onError === "function") { opts.onError(err); } ```
Fixes https://github.com/transloadit/uppy/issues/5473.