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
2025-06-08 08:18:12 +08:00
committed by GitHub
3 changed files with 6 additions and 4 deletions

View File

@@ -205,7 +205,7 @@ const Settings = () => {
bottom: 0,
boxShadow: theme.shape.boxShadow,
zIndex: 1000,
mt : 3,
mt: 3,
backgroundColor: theme.palette.primary.main,
display: "flex",
justifyContent: "flex-end",
@@ -216,7 +216,7 @@ const Settings = () => {
border: 1,
borderStyle: "solid",
borderColor: theme.palette.primary.lowContrast,
borderRadius: theme.spacing(2)
borderRadius: theme.spacing(2),
}}
>
<Button

View File

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

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