Skip to content

Commit efec237

Browse files
authored
@uppy/aws-s3: remove console.error (#5607)
Update HTTPCommunicationQueue.ts #5602 (comment)
1 parent 0e2bdfd commit efec237

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,9 @@ export class HTTPCommunicationQueue<M extends Meta, B extends Body> {
276276
signal,
277277
}).abortOn(signal)) as unknown as B // todo this doesn't make sense
278278

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

287284
return {

0 commit comments

Comments
 (0)