Class SuccessEventArgs
Provides information about the OnChunkSuccess and Success events callback.
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class SuccessEventArgs : Object
Remarks
This event is triggered when file upload operations complete successfully, either for individual chunks (in chunk-based uploads) or entire files. It provides comprehensive information about the successful operation, including server response details, file information, and upload context. This event enables developers to handle successful uploads and implement post-upload processing.
Constructors
SuccessEventArgs()
Declaration
public SuccessEventArgs()
Properties
ChunkIndex
Gets or sets the index of the successfully uploaded file chunk.
Declaration
public double ChunkIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the zero-based index of the chunk that was successfully uploaded. |
Remarks
This property identifies the specific chunk within a file that was successfully uploaded when chunk-based upload is enabled. For non-chunked uploads, this value may be zero or not applicable. It helps track progress in multi-chunk upload scenarios and can be used for implementing custom progress indicators or resumable upload functionality.
ChunkSize
Gets or sets the size of the uploaded file chunk in bytes.
Declaration
public double ChunkSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the chunk size in bytes. |
Remarks
This property specifies the size of the chunk that was successfully uploaded. For chunk-based uploads, this represents the size of the individual chunk. For non-chunked uploads, this may represent the entire file size. This information is useful for calculating upload progress and bandwidth utilization.
E
Gets or sets the original event arguments associated with the success event.
Declaration
public object E { get; set; }
Property Value
Type | Description |
---|---|
System.Object | An object containing the original event arguments, or |
Remarks
This property provides access to the underlying event arguments that triggered the success event. Note: This property is obsolete and should no longer be used in new implementations. Use other properties of this class for accessing success information.
Event
Gets or sets the original event arguments for the upload success operation.
Declaration
public object Event { get; set; }
Property Value
Type | Description |
---|---|
System.Object | An object containing the original event arguments for the current event, or |
Remarks
This property provides access to the underlying event arguments that triggered the upload success. Note: This property is obsolete and should no longer be used in new implementations. Use other properties of this class for accessing upload success information.
File
Gets or sets the details about the successfully uploaded file.
Declaration
public FileInfo File { get; set; }
Property Value
Type | Description |
---|---|
FileInfo | A FileInfo object containing comprehensive file details, or |
Remarks
This property contains detailed information about the file that was successfully uploaded, including file name, size, type, and final upload status. This information is essential for post-upload processing, user feedback, and maintaining upload records.
Operation
Gets or sets the type of upload operation that was successfully completed.
Declaration
public string Operation { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string describing the upload operation type, or |
Remarks
This property indicates the specific type of upload operation that completed successfully. It helps distinguish between different types of upload operations, such as initial upload, retry operations, or chunk-based uploads, allowing for operation-specific handling and reporting.
Response
Gets or sets the server response details for the successful upload operation.
Declaration
public ResponseEventArgs Response { get; set; }
Property Value
Type | Description |
---|---|
ResponseEventArgs | A ResponseEventArgs object containing the server response information, or |
Remarks
This property contains comprehensive information about the server's response to the upload request, including status codes, headers, and response content. This information can be used for validation, logging, or implementing server-specific post-upload processing.
StatusText
Gets or sets the status text describing the upload operation result.
Declaration
public string StatusText { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the status description, or |
Remarks
This property provides a human-readable description of the upload operation status. It typically contains success messages or additional information about the completed upload that can be displayed to users or used for logging purposes.
TotalChunk
Gets or sets the total number of chunks for the uploaded file.
Declaration
public double TotalChunk { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the total count of chunks that the file was divided into for upload. |
Remarks
This property indicates the total number of chunks that the file was divided into for the upload process. Combined with the ChunkIndex property, it provides complete information about chunk-based upload progress and helps determine when all chunks of a file have been successfully uploaded.