FileUploadEventArgs.FileInfo Property

Returns information about a file.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.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"
          ShowFileList="false">
</DxUpload>

@code {
    void OnFileUploadStarted(FileUploadEventArgs e) {
        // Write your code here. For instance, show an information message.
        string message = "Upload of the " + e.FileInfo.Name + " file was started.";
        ShowMyMessage(message);
    }
}
See Also