mirror of
https://github.com/kyantech/Palmr.git
synced 2026-01-09 06:02:28 +08:00
fix: use internal S3 client for createMultipartUpload to fix large file uploads (#362)
This commit is contained in:
commit
717bf1a06a
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user