const command = new PutObjectCommand({
Bucket: bucketInfo.BUCKET_NAME,
Key: buildKey(objectStorageKey, bucketInfo),
- Body: content
+ Body: content,
+ ACL: 'public-read'
})
await getClient().send(command)
const createMultipartCommand = new CreateMultipartUploadCommand({
Bucket: bucketInfo.BUCKET_NAME,
- Key: key
+ Key: key,
+ ACL: 'public-read'
})
const createResponse = await s3Client.send(createMultipartCommand)
const completeUploadCommand = new CompleteMultipartUploadCommand({
Bucket: bucketInfo.BUCKET_NAME,
- Key: objectStorageKey,
+ Key: key,
UploadId: createResponse.UploadId,
MultipartUpload: { Parts: parts }
})