Skip to content
Snippets Groups Projects
Unverified Commit ccda2181 authored by MeiMei's avatar MeiMei Committed by GitHub
Browse files

GCSに大きいファイルがアップロードできないのを修正 Fix #6254 (#6648)

parent b5fe4ba9
No related branches found
No related tags found
No related merge requests found
......@@ -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}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment