fix: Remove hard-coded ServerSideEncryption on AWS, configure on AWS or storage provider

This commit is contained in:
Tom Moor
2021-02-16 00:16:23 -08:00
parent f18a2a048d
commit a81a18b173

View File

@ -110,7 +110,6 @@ export const uploadToS3FromBuffer = async (
Key: key,
ContentType: contentType,
ContentLength: buffer.length,
ServerSideEncryption: "AES256",
Body: buffer,
})
.promise();
@ -135,7 +134,6 @@ export const uploadToS3FromUrl = async (
Key: key,
ContentType: res.headers["content-type"],
ContentLength: res.headers["content-length"],
ServerSideEncryption: "AES256",
Body: buffer,
})
.promise();