From b0aedd38ed23ba5d47dcc8c2cce74d525b0d46c1 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 18 Sep 2020 16:19:41 +0100 Subject: [PATCH] lowercase file extension --- packages/server/src/api/controllers/deploy/aws.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/deploy/aws.js b/packages/server/src/api/controllers/deploy/aws.js index 40bada4dca..91f28793da 100644 --- a/packages/server/src/api/controllers/deploy/aws.js +++ b/packages/server/src/api/controllers/deploy/aws.js @@ -71,7 +71,7 @@ function prepareUploadForS3({ filePath, s3Key, metadata, s3 }) { .upload({ Key: s3Key, Body: fileBytes, - ContentType: CONTENT_TYPE_MAP[fileExtension], + ContentType: CONTENT_TYPE_MAP[fileExtension.toLowerCase()], Metadata: metadata, }) .promise()