mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Make valid file extension checking case insensitive on Desktop app
This commit is contained in:
parent
5def14e3bb
commit
8196ab62f9
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ function filenameToMimeType (filename) {
|
|||
}
|
||||
|
||||
function isSupportedFileType(filePath) {
|
||||
const fileExtension = filePath.split('.').pop();
|
||||
const fileExtension = filePath.split('.').pop().toLowerCase();
|
||||
return validFileTypes.includes(fileExtension);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue