From 4ef20c81efc759c4de5f24bb215765c4e08c07ca Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Tue, 9 Dec 2025 18:25:36 +0800 Subject: [PATCH] rename --- packages/service/common/s3/sources/chat/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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' });