Merge pull request #2398 from bluewave-labs/Fix-for-csv-lowecase-check

FIX for csv file case sensitive file ending.
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-06-08 08:18:12 +08:00
commit fdf8e88e44
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -216,7 +216,7 @@ const Settings = () => {
border: 1,
borderStyle: "solid",
borderColor: theme.palette.primary.lowContrast,
borderRadius: theme.spacing(2)
borderRadius: theme.spacing(2),
}}
>
<Button
@@ -23,7 +23,7 @@ const UploadFile = ({ onFileSelect }) => {
// Basic file validation
if (!selectedFile) return;
if (!selectedFile.name.endsWith(".csv")) {
if (!selectedFile.name.toLowerCase().endsWith(".csv")) {
setError(t("bulkImport.invalidFileType"));
return;
}
+3 -1
View File
@@ -353,7 +353,9 @@ const CreateMonitor = () => {
>
{t("settingsGeneralSettings")}
</Typography>
<Typography component="p">{t(`uptimeGeneralInstructions.${monitor.type}`)}</Typography>
<Typography component="p">
{t(`uptimeGeneralInstructions.${monitor.type}`)}
</Typography>
</Box>
<Stack gap={theme.spacing(15)}>
<TextInput