mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 18:07:31 -07:00
parent
441b6fcedd
commit
cdd6da3f7e
1 changed files with 3 additions and 1 deletions
|
@ -216,7 +216,9 @@ async function upload(key: string, stream: fs.ReadStream | Buffer, type: string,
|
|||
|
||||
const s3 = getS3(meta);
|
||||
|
||||
const upload = s3.upload(params);
|
||||
const upload = s3.upload(params, {
|
||||
partSize: s3.endpoint?.hostname === 'storage.googleapis.com' ? 500 * 1024 * 1024 : 8 * 1024 * 1024
|
||||
});
|
||||
|
||||
const result = await upload.promise();
|
||||
if (result) logger.debug(`Uploaded: ${result.Bucket}/${result.Key} => ${result.Location}`);
|
||||
|
|
Loading…
Reference in a new issue