DxUpload.FileUploadProgressChanged Event

Fires when the upload progress changes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public Action<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/UploadFile/" 
          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