Class FileManagerAjaxSettings
Defines the Ajaxsettings for the filemanager component.
Inherited Members
Namespace: Syncfusion.Blazor.FileManager
Assembly: Syncfusion.Blazor.dll
Syntax
public class FileManagerAjaxSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
FileManagerAjaxSettings()
Declaration
public FileManagerAjaxSettings()
Properties
DownloadUrl
Specifies URL to download the files from server.
Declaration
[Parameter]
public string DownloadUrl { get; set; }
Property Value
| Type |
|---|
| string |
GetImageUrl
Specifies URL to get the images from server.
Declaration
[Parameter]
public string GetImageUrl { get; set; }
Property Value
| Type |
|---|
| string |
HttpClientInstance
Gets or sets HttpClient instance to be used by FileManager.
Declaration
[Parameter]
public HttpClient HttpClientInstance { get; set; }
Property Value
| Type | Description |
|---|---|
| HttpClient | The HttpClient instance. The default instance has a timeout of 3 minutes. |
Remarks
Use this property to bind the globally injected
HttpClient instance from your application to the FileManager component.
This approach ensures the use of a single HTTP client instance throughout your application.
Examples
@inject HttpClient httpClient;
<SfFileManager TValue = "FileManagerDirectoryContent" >
< FileManagerAjaxSettings HttpClientInstance="@httpClient" Url="/api/SampleData/FileOperations" DownloadUrl="/api/SampleData/Download" UploadUrl="/api/SampleData/Upload" GetImageUrl="/api/SampleData/GetImage" />
</ SfFileManager >
UploadUrl
Specifies URL to upload the files to server.
Declaration
[Parameter]
public string UploadUrl { get; set; }
Property Value
| Type |
|---|
| string |
Url
Specifies URL to read the files from server.
Declaration
[Parameter]
public string Url { get; set; }
Property Value
| Type |
|---|
| string |
Methods
Dispose(bool)
Dispose unmanaged resources in the component.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | Boolean value to dispose the object. |
Overrides
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | Task. |
Overrides
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type |
|---|
| Task |