diff --git a/packages/core/src/s3/s3.ts b/packages/core/src/s3/s3.ts index 07b91958..2a9dacc2 100644 --- a/packages/core/src/s3/s3.ts +++ b/packages/core/src/s3/s3.ts @@ -95,7 +95,7 @@ export class S3StorageService implements S3Service { body && typeof body === 'object' && 'getReader' in body ? new Response(body as ReadableStream) : body - await this.client.write(key, payload as string | Buffer | ArrayBuffer | Uint8Array | Response, { + await this.client.write(key, payload, { bucket, type: contentType, })