FileUploadEventArgs.FileInfo Property

Returns information about a file.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

public UploadFileInfo FileInfo { get; }

Property Value

Type Description
UploadFileInfo

Information about the file.

Remarks

The following example demonstrates how to use this property in the FileUploadStarted event handler:

<DxUpload Name="myFile" UploadUrl="https://localhost:10000/api/Upload/UploadFile/" 
          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);
    }
}

File Upload Started

See Also