Class UploaderAsyncSettings
Specifies the Uploader Events of the component.
Inherited Members
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class UploaderAsyncSettings : SfBaseComponent
Constructors
UploaderAsyncSettings()
Declaration
public UploaderAsyncSettings()
Properties
ChunkSize
Specifies the ChunkSize to split the large file into chunks, and upload it to the server in a sequential order.
If the ChunkSize property has value, the Uploader enables the chunk upload by default. It must be specified in bytes value.
Declaration
public double ChunkSize { get; set; }
Property Value
Type |
---|
System.Double |
HttpClientInstance
Gets or sets the System.Net.Http.HttpClient instance used by the SfUploader component
for performing upload and remove operations.
Declaration
public HttpClient HttpClientInstance { get; set; }
Property Value
Type | Description |
---|---|
System.Net.Http.HttpClient | The System.Net.Http.HttpClient instance that handles HTTP requests for the SfUploader component. |
Remarks
Use this property to bind a custom System.Net.Http.HttpClient instance to the SfUploader component.
This allows for centralized management of HTTP configurations such as headers, base addresses, and timeouts,
ensuring consistent HTTP settings across your application.
If HttpClientInstance
is not specified, the component defaults to using the globally injected
System.Net.Http.HttpClient instance provided in the application’s Program.cs
or Startup.cs
.
Examples
@inject HttpClient httpClient;
This example demonstrates setting the HttpClientInstance
property to a globally injected
System.Net.Http.HttpClient instance, enabling shared HTTP configurations within the SfUploader component.
RemoveUrl
Specifies the URL of remove action that receives the file information and handle the remove operation in server.
The remove action type must be POST request and define "RemoveFileNames" attribute to get file information that will be removed. This property is optional.
Declaration
public string RemoveUrl { get; set; }
Property Value
Type |
---|
System.String |
RetryAfterDelay
Specifies the delay time in milliseconds that the automatic retry happens after the delay.
Declaration
public double RetryAfterDelay { get; set; }
Property Value
Type |
---|
System.Double |
RetryCount
Specifies the number of retries that the Uploader can perform on the file failed to upload. By default, the Uploader set 3 as maximum retries. This property must be specified to prevent infinity looping.
Declaration
public int RetryCount { get; set; }
Property Value
Type |
---|
System.Int32 |
SaveUrl
Specifies the URL of save action that will receive the upload files and save in the server.
The save action type must be POST request and define the argument as same input name used to render the component.
Declaration
public string SaveUrl { get; set; }
Property Value
Type |
---|
System.String |