fix cannot send multipart to aws due to min size (#319)

This commit is contained in:
Hoan Luu Huu
2024-05-03 18:37:38 +07:00
committed by GitHub
parent ce2fa392a4
commit c0fab2880b

View File

@@ -16,7 +16,7 @@ class S3MultipartUploadStream extends Writable {
this.partNumber = 1;
this.multipartETags = [];
this.buffer = Buffer.alloc(0);
this.minPartSize = 2 * 1024 * 1024; // 5 MB
this.minPartSize = 5 * 1024 * 1024; // 5 MB
this.s3 = new S3Client(opts.bucketCredential);
this.metadata = opts.metadata;
}