From f0849ead0f8db49102cb53aaab2677d78de7de78 Mon Sep 17 00:00:00 2001 From: ItsOnlyBinary Date: Thu, 7 Nov 2024 20:02:40 +0000 Subject: [PATCH] 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