mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-06-28 17:16:27 +00:00
validation
This commit is contained in:
parent
e49973497c
commit
c4daf7f692
@ -103,7 +103,13 @@ public static class FileExtensionValidation
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (FileTypes.IsAllowedPath(filePath, FileTypes.DOCUMENT))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
await MessageBus.INSTANCE.SendWarning(new(
|
||||||
|
Icons.Material.Filled.InsertDriveFile,
|
||||||
|
TB("Unsupported file type")));
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user