FIX for csv file case sensitive file ending.
This commit is contained in:
1 parent
9c921896fd
commit
958a8ad5a7
1 file changed
+1
-1
@@ -23,7 +23,7 @@ const UploadFile = ({ onFileSelect }) => {
|
|||||||
// Basic file validation
|
// Basic file validation
|
||||||
if (!selectedFile) return;
|
if (!selectedFile) return;
|
||||||
|
|
||||||
if (!selectedFile.name.endsWith(".csv")) {
|
if (!selectedFile.name.toLowerCase().endsWith(".csv")) {
|
||||||
setError(t("bulkImport.invalidFileType"));
|
setError(t("bulkImport.invalidFileType"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user