blazor-devexpress-dot-blazor-5e85276e.md
Provides data for the upload events.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public class FileUploadEventArgs :
EventArgs
FileUploadEventArgs is the data class for the following events:
The event argument’s FileInfo property stores information about a file (the name, size, type, etc.)
<DxUpload Name="myFile" UploadUrl="https://localhost:10000/api/Upload/Upload/"
FileUploadStarted="@OnFileUploadStarted">
</DxUpload>
<div class="alert alert-info @(MessageVisible? " visible" : " invisible")">@MyMessage</div>
@code {
void OnFileUploadStarted(FileUploadEventArgs e) {
MyMessage = "Upload of the " + e.FileInfo.Name + " file was started.";
MessageVisible = true;
InvokeAsync(StateHasChanged);
}
}
Object EventArgs FileUploadEventArgs FileUploadErrorEventArgs
See Also