Make valid file extension checking case insensitive on Desktop app

This commit is contained in:
Debanjum Singh Solanky 2024-04-23 11:14:57 +05:30
parent 5def14e3bb
commit 8196ab62f9

View file

@ -116,7 +116,7 @@ function filenameToMimeType (filename) {
} }
function isSupportedFileType(filePath) { function isSupportedFileType(filePath) {
const fileExtension = filePath.split('.').pop(); const fileExtension = filePath.split('.').pop().toLowerCase();
return validFileTypes.includes(fileExtension); return validFileTypes.includes(fileExtension);
} }