fix(s3): use client.size instead of file.size in getObjectSize

This commit is contained in:
yiling
2026-06-08 19:51:04 +08:00
parent f96f687be4
commit 3fe0b3490d
2 changed files with 21 additions and 22 deletions
+1 -2
View File
@@ -88,8 +88,7 @@ export class S3StorageService implements S3Service {
}
async getObjectSize(bucket: string, key: string): Promise<number> {
const file = this.client.file(key, { bucket })
return await file.size
return await this.client.size(key, { bucket })
}
async putObject(