FileUploadErrorEventArgs.RequestInfo Property

Returns information about a request's response.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public UploadHttpRequestInfo RequestInfo { get; }

Property Value

Type Description
UploadHttpRequestInfo

Information about a request's response.

Remarks

<DxUpload Name="myFile" UploadUrl="https://localhost:10000/api/Upload/UploadFile/" 
          FileUploadError="@OnFileUploadError"
          ShowFileList="false">
</DxUpload>

@code {
    void OnFileUploadError(FileUploadErrorEventArgs e) {
        // Write your code here. For instance, show an information message.
        string message = "The " + e.FileInfo.Name + " file was not uploaded. Error:" + e.RequestInfo.Status;
        ShowMyMessage(message);
    }
}
See Also