diff --git a/packages/service/common/s3/sources/chat/index.ts b/packages/service/common/s3/sources/chat/index.ts index 772548a62..16931c7a8 100644 --- a/packages/service/common/s3/sources/chat/index.ts +++ b/packages/service/common/s3/sources/chat/index.ts @@ -112,7 +112,7 @@ export class S3ChatSource { return this.bucket.addDeleteJob({ key }); } - async uploadFile(params: UploadFileParams) { + async uploadFileByBuffer(params: UploadFileParams) { const { appId, chatId, uId, filename, expiredTime, buffer, contentType } = UploadChatFileSchema.parse(params); const { fileKey } = getFileS3Key.chat({ @@ -122,7 +122,6 @@ export class S3ChatSource { filename }); - console.log('upload to s3, contentType:', contentType); await this.bucket.putObject(fileKey, buffer, undefined, { 'Content-Type': contentType || 'application/octet-stream' });