Skip to content

Commit

Permalink
@uppy/tus: fix event upload-success response.body.xhr (#5503)
Browse files Browse the repository at this point in the history
fix event upload-success payload.body.xhr
  • Loading branch information
ItsOnlyBinary authored Nov 11, 2024
1 parent d6d940c commit 014f1da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@uppy/tus/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@ export default class Tus<M extends Meta, B extends Body> 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
Expand Down

0 comments on commit 014f1da

Please sign in to comment.