Feature: migrate from aws-sdk v2 to v3

This commit is contained in:
萌萌哒赫萝
2023-08-08 20:34:19 -07:00
parent 76e588b2ef
commit 13852a5c1b
10 changed files with 557 additions and 573 deletions

View File

@@ -29,8 +29,8 @@ const uploadFile = async () => {
secretAccessKey: SECRET_KEY
},
endpoint: `https://${ACCOUNT_ID}.r2.cloudflarestorage.com`,
sslEnabled: true,
region: 'us-east-1'
tls: true,
region: 'auto'
}
const client = new S3Client.S3Client(options)
const parallelUploads3 = new Upload.Upload({