lowercase file extension
This commit is contained in:
parent
8ce3d4124b
commit
b0aedd38ed
|
@ -71,7 +71,7 @@ function prepareUploadForS3({ filePath, s3Key, metadata, s3 }) {
|
||||||
.upload({
|
.upload({
|
||||||
Key: s3Key,
|
Key: s3Key,
|
||||||
Body: fileBytes,
|
Body: fileBytes,
|
||||||
ContentType: CONTENT_TYPE_MAP[fileExtension],
|
ContentType: CONTENT_TYPE_MAP[fileExtension.toLowerCase()],
|
||||||
Metadata: metadata,
|
Metadata: metadata,
|
||||||
})
|
})
|
||||||
.promise()
|
.promise()
|
||||||
|
|
Loading…
Reference in New Issue