lowercase file extension

This commit is contained in:
Martin McKeaveney 2020-09-18 16:19:41 +01:00
parent 8ce3d4124b
commit b0aedd38ed
1 changed files with 1 additions and 1 deletions

View File

@ -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()