fix: file extension to lowercase when uploading
This commit is contained in:
parent
1978cfc356
commit
21b532f581
@ -273,7 +273,7 @@ export function getFileDirectory(filePath: string) {
|
||||
|
||||
export function getFileExtension(filePath: string) {
|
||||
const parts = filePath.split('.')
|
||||
const extension = parts.slice(-1)[0]
|
||||
const extension = parts.slice(-1)[0].toLowerCase()
|
||||
return '.' + extension
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user