diff --git a/packages/@uppy/tus/src/index.ts b/packages/@uppy/tus/src/index.ts index bdde8644e3..2796c8ab51 100644 --- a/packages/@uppy/tus/src/index.ts +++ b/packages/@uppy/tus/src/index.ts @@ -323,11 +323,11 @@ export default class Tus extends BasePlugin< } as unknown as B, } + this.uppy.emit('upload-success', this.uppy.getFile(file.id), uploadResp) + this.resetUploaderReferences(file.id) queuedRequest.done() - this.uppy.emit('upload-success', this.uppy.getFile(file.id), uploadResp) - if (upload.url) { // @ts-expect-error not typed in tus-js-client const { name } = upload.file