fix: use internal S3 client for createMultipartUpload to fix large file uploads (#362)

This commit is contained in:
Daniel Luiz Alves 2025-12-09 22:44:33 -03:00 committed by GitHub
commit 717bf1a06a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,10 +182,7 @@ export class S3StorageProvider implements StorageProvider {
* Returns uploadId for subsequent part uploads
*/
async createMultipartUpload(objectName: string): Promise<string> {
const client = createPublicS3Client();
if (!client) {
throw new Error("S3 client could not be created");
}
const client = this.ensureClient();
const command = new CreateMultipartUploadCommand({
Bucket: bucketName,