DxUpload.FileReloaded Event
Fires when a file is reloaded.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v26.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public EventCallback<FileReloadedEventArgs> FileReloaded { get; set; }
Event Data
The FileReloaded event's data class is FileReloadedEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| NewFileInfo | Contains information about the reloaded file. |
| OldFileInfo | Contains information about the file before the reload. |
Remarks
The FileReloaded event fires after a user reloads a file whose upload was canceled.
The following code snippet displays a message after a user reloads a file. Note that the code snippet uses Bootstrap classes. To render elements correctly, enable the UseBootstrapStyles option in theme settings.
<DxUpload Name="myFile"
UploadUrl="https://localhost:10000/api/Upload/Upload/"
FileReloaded="@OnFileReloaded" />
<div class="alert alert-info @(MessageVisible? " visible" : " invisible")">
@MyMessage
</div>
@code {
bool MessageVisible { get; set; } = false;
string MyMessage { get; set; } = "";
void OnFileReloaded(FileReloadedEventArgs args) {
MyMessage = "The " + args.NewFileInfo.Name + " file was reloaded.";
MessageVisible = true;
InvokeAsync(StateHasChanged);
}
}

See Also