Skip to main content

DxUpload.FileUploadProgressChanged Event

Fires when the upload progress changes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public EventCallback<FileUploadEventArgs> FileUploadProgressChanged { get; set; }

Event Data

The FileUploadProgressChanged event's data class is FileUploadEventArgs. The following properties provide information specific to this event:

Property Description
FileInfo Returns information about a file.

Remarks

<DxUpload Name="myFile" UploadUrl="https://localhost:10000/api/Upload/Upload/" 
          UploadProgressChanged="@OnUploadProgressChanged">
</DxUpload>

@code {
    void OnUploadProgressChanged(FileUploadEventArgs e) {
        // Write your code here. For instance, show an upload progress.
        var progress = e.FileInfo.LoadedBytes / e.FileInfo.Size * 100;
        UpdateUploadProgress(e.FileInfo.Name, progress);
    }
    // ...
}
See Also