upload file
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m10s
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user