mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
rename
This commit is contained in:
parent
c50622b469
commit
4ef20c81ef
|
|
@ -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'
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue