diff --git a/packages/service/common/s3/sources/dataset/index.ts b/packages/service/common/s3/sources/dataset/index.ts index 7856f7c733d7..ea446ef54798 100644 --- a/packages/service/common/s3/sources/dataset/index.ts +++ b/packages/service/common/s3/sources/dataset/index.ts @@ -178,7 +178,7 @@ export class S3DatasetSource { await this.bucket.putObject(key, buffer, buffer.length, { 'content-type': Mimes[path.extname(truncatedFilename) as keyof typeof Mimes], 'upload-time': new Date().toISOString(), - 'origin-filename': encodeURIComponent(filename) // 保持原始文件名在元数据中 + 'origin-filename': encodeURIComponent(truncatedFilename) }); await MongoS3TTL.create({ minioKey: key,