@uppy/aws-s3: remove console.error (#5607)

Update HTTPCommunicationQueue.ts

https://github.com/transloadit/uppy/pull/5602#discussion_r1916248098
This commit is contained in:
Mikael Finstad 2025-01-17 14:20:55 +08:00 committed by GitHub
parent 0e2bdfdaa8
commit efec2374b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {