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