mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 22:50:53 +03:00
Merge pull request #1063 from hbakhtiyor/patch-1
Convert ContentLength of storage to number
This commit is contained in:
@@ -17,7 +17,7 @@ class S3Storage {
|
|||||||
const result = await this.s3
|
const result = await this.s3
|
||||||
.headObject({ Bucket: this.bucket, Key: id })
|
.headObject({ Bucket: this.bucket, Key: id })
|
||||||
.promise();
|
.promise();
|
||||||
return result.ContentLength;
|
return Number(result.ContentLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
getStream(id) {
|
getStream(id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user