All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m10s
26 lines
650 B
Plaintext
26 lines
650 B
Plaintext
@page "/test"
|
|
|
|
<h3>Test</h3>
|
|
|
|
<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
|
|
}
|
|
}
|