UploadFileInfo Class

Provides information about a file.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public class UploadFileInfo

Returned By

The FileUploadEventArgs.FileInfo property returns an instance of UploadFileInfo.

Remarks

The UploadFileInfo class instance is used for the upload events: FileUploadStarted, FileUploaded, FileUploadError, etc.

<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);
    }
}

Inheritance

Object
UploadFileInfo
See Also