fix: Remove hard-coded ServerSideEncryption on AWS, configure on AWS or storage provider
This commit is contained in:
@ -110,7 +110,6 @@ export const uploadToS3FromBuffer = async (
|
|||||||
Key: key,
|
Key: key,
|
||||||
ContentType: contentType,
|
ContentType: contentType,
|
||||||
ContentLength: buffer.length,
|
ContentLength: buffer.length,
|
||||||
ServerSideEncryption: "AES256",
|
|
||||||
Body: buffer,
|
Body: buffer,
|
||||||
})
|
})
|
||||||
.promise();
|
.promise();
|
||||||
@ -135,7 +134,6 @@ export const uploadToS3FromUrl = async (
|
|||||||
Key: key,
|
Key: key,
|
||||||
ContentType: res.headers["content-type"],
|
ContentType: res.headers["content-type"],
|
||||||
ContentLength: res.headers["content-length"],
|
ContentLength: res.headers["content-length"],
|
||||||
ServerSideEncryption: "AES256",
|
|
||||||
Body: buffer,
|
Body: buffer,
|
||||||
})
|
})
|
||||||
.promise();
|
.promise();
|
||||||
|
Reference in New Issue
Block a user