Save Changes

This commit is contained in:
2026-05-23 13:08:12 +02:00
parent 352a7dbfde
commit 8e615c15f0
2 changed files with 124 additions and 23 deletions
@@ -85,8 +85,7 @@
</ActivatorContent>
</MudFileUpload>
</MudItem>
<!-- ═══ Rechte Spalte: Formular ═══ -->
<MudItem xs="7">
<MudStack Spacing="3">
@@ -198,8 +197,7 @@
private async Task OnPictureUploaded(IBrowserFile file)
{
_picture = file;
// Base64-Vorschau generieren (max. 5 MB)
const long maxPreviewSize = 5 * 1024 * 1024;
await using var stream = file.OpenReadStream(maxPreviewSize);
using var ms = new MemoryStream();
@@ -266,6 +264,7 @@
Snackbar.Add("Global Entity created!", Severity.Success);
MudDialog.Close(DialogResult.Ok(entity.Id));
NavigationManager.NavigateTo(NavigationManager.Uri, true);
}
catch (Exception ex)
{