UploadHttpRequestInfo Class

Provides information about an HTTP request.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public class UploadHttpRequestInfo

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="@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 + " " + e.RequestInfo.StatusText;
        ShowMyMessage(message);
    }
}

Inheritance

Object
UploadHttpRequestInfo
See Also