validation

This commit is contained in:
Paul Koudelka 2026-04-09 15:32:20 +02:00
parent e49973497c
commit c4daf7f692

View File

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