Back to Devexpress

FileUploadEventArgs.FileInfo Property

blazor-devexpress-dot-blazor-dot-fileuploadeventargs.md

latest1.4 KB
Original Source

FileUploadEventArgs.FileInfo Property

Returns information about a file.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public UploadFileInfo FileInfo { get; }

Property Value

TypeDescription
UploadFileInfo

Information about the file.

|

Remarks

The following example uses this property in the FileUploadStarted event handler:

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

See Also

FileUploadEventArgs Class

FileUploadEventArgs Members

DevExpress.Blazor Namespace