From 014f1da0e55223cf837f879cbe1a61a89a8a263a Mon Sep 17 00:00:00 2001 From: ItsOnlyBinary Date: Mon, 11 Nov 2024 09:33:17 +0000 Subject: [PATCH] @uppy/tus: fix event upload-success response.body.xhr (#5503) fix event upload-success payload.body.xhr --- packages/@uppy/tus/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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