Skip to content

Commit

Permalink
fix event upload-success payload.body.xhr
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsOnlyBinary committed Nov 7, 2024
1 parent 6d413f5 commit f0849ea
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 f0849ea

Please sign in to comment.