DxUpload.FileUploadPaused Event
Fires when file upload is paused.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public EventCallback<FileUploadEventArgs> FileUploadPaused { get; set; }
Event Data
The FileUploadPaused event's data class is FileUploadEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
FileInfo | Returns information about a file. |
Remarks
The FileUploadPaused
event occurs when a user clicks the pause button. This button is available in chunk mode if the AllowPause property is set to true
.
<DxUpload Name="myFile" UploadUrl="https://localhost:10000/api/Upload/UploadChunkFile/"
ChunkSize="200000"
FileUploadPaused="@OnFileUploadPaused">
</DxUpload>
<div class="alert alert-info @(MessageVisible? " visible" : " invisible")">@MyMessage</div>
@code {
bool MessageVisible { get; set; } = false;
string MyMessage { get; set; } = "";
void OnFileUploadPaused(FileUploadEventArgs e) {
MyMessage = "Upload of the " + e.FileInfo.Name + " file was paused.";
MessageVisible = true;
InvokeAsync(StateHasChanged);
}
}
See Also