fix: file extension to lowercase when uploading

This commit is contained in:
juzheng 2025-03-09 09:00:08 +08:00 committed by 亢奋猫
parent 1978cfc356
commit 21b532f581

View File

@ -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
}