1
0
Fork 0
mirror of synced 2024-07-05 06:20:55 +12:00

lowercase file extension

This commit is contained in:
Martin McKeaveney 2020-09-18 16:19:41 +01:00
parent d3a18ab079
commit f95692fb84

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