upload file
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m10s

This commit is contained in:
2026-01-20 21:37:08 +01:00
parent b47bfbe982
commit cb860cebdc

View File

@@ -2,6 +2,24 @@
<h3>Test</h3>
@code {
<MudFileUpload T="IReadOnlyList<IBrowserFile>" FilesChanged="UploadFiles">
<ActivatorContent>
<MudButton Variant="Variant.Filled"
Color="Color.Primary"
StartIcon="@Icons.Material.Filled.CloudUpload">
Multiple Files
</MudButton>
</ActivatorContent>
</MudFileUpload>
@code {
IList<IBrowserFile> files = new List<IBrowserFile>();
private void UploadFiles(IReadOnlyList<IBrowserFile> files)
{
foreach (var file in files)
{
this.files.Add(file);
}
//TODO upload the files to the server
}
}