Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts
Original file line number Diff line number Diff line change
@@ -276,12 +276,9 @@ export class HTTPCommunicationQueue<M extends Meta, B extends Body> {
signal,
}).abortOn(signal)) as unknown as B // todo this doesn't make sense

// Note: `fields.key` is not returned by old Companion versions.
// See https://github.com/transloadit/uppy/pull/5602
const key = fields?.key
if (!key) {
console.error(
'Expected `fields.key` to be returend but the backend/Companion',
)
}
this.#setS3MultipartState(file, { key: key! })

return {

0 comments on commit efec237

Please sign in to comment.