Skip to main content

UploadHttpRequestInfo Class

Provides information about an HTTP request.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public class UploadHttpRequestInfo

The following members return UploadHttpRequestInfo objects:

Remarks

The UploadFileInfo class instance is used for the FileUploadError event. This event occurs when a file could not be uploaded to the server.

<DxUpload Name="myFile" UploadUrl="https://localhost:10000/api/Upload/UploadFile/"
          FileUploadError="@OnUploadError">
</DxUpload>
<div class="alert alert-danger @(ErrorVisible? " visible" : " invisible")">@MyError</div>

@code {
    bool ErrorVisible { get; set; } = false;
    string MyError { get; set; }

    void OnUploadError(FileUploadErrorEventArgs e) {
        MyError = e.RequestInfo.ResponseText;
        ErrorVisible = true;
        InvokeAsync(StateHasChanged);
    }
}

Inheritance

Object
UploadHttpRequestInfo
See Also