Class ResponseEventArgs
Represents the response details for OnImageUploadSuccess and OnImageUploadFailed events.
Inheritance
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class ResponseEventArgs : Object
Remarks
This class provides metadata about the server's response to a file upload request, including the HTTP status.
Constructors
ResponseEventArgs()
Declaration
public ResponseEventArgs()
Properties
Headers
Gets or sets the headers of the uploaded image's response.
Declaration
public string Headers { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing response header information. |
Remarks
The Headers property stores HTTP response headers returned from the server during an upload.
ReadyState
Gets or sets the ReadyState of the uploaded image.
Declaration
public int ReadyState { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An integer describing the state of the upload. |
Remarks
The ReadyState property generally indicates the processing state of an upload request.
StatusCode
Gets or sets the HTTP StatusCode of the uploaded image.
Declaration
public int StatusCode { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An integer specifying the HTTP status code. |
Remarks
The StatusCode provides the HTTP response code from the server, indicating success or failure.
StatusText
Gets or sets the status message of the uploaded image.
Declaration
public string StatusText { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string detailing the response status text. |
Remarks
The StatusText property gives additional context on the outcome of an upload operation.
WithCredentials
Gets or sets whether credentials were sent with the uploaded image.
Declaration
public bool WithCredentials { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean indicating the use of credentials. |
Remarks
The WithCredentials property details whether cookies or authentication data accompanied the HTTP request.