mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 21:01:32 +08:00
fix: file extension to lowercase when uploading
This commit is contained in:
parent
30130d5541
commit
7e0ed91444
@ -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…
Reference in New Issue
Block a user