menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FileManagerAjaxSettings - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FileManagerAjaxSettings

    Defines the Ajaxsettings for the filemanager component.

    Inheritance
    System.Object
    FileManagerAjaxSettings
    Namespace: Syncfusion.Blazor.FileManager
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class FileManagerAjaxSettings : OwningComponentBase

    Constructors

    FileManagerAjaxSettings()

    Declaration
    public FileManagerAjaxSettings()

    Properties

    DownloadUrl

    Specifies URL to download the files from server.

    Declaration
    public string DownloadUrl { get; set; }
    Property Value
    Type
    System.String

    GetImageUrl

    Specifies URL to get the images from server.

    Declaration
    public string GetImageUrl { get; set; }
    Property Value
    Type
    System.String

    HttpClientInstance

    Gets or sets HttpClient instance to be used by FileManager.

    Declaration
    public HttpClient HttpClientInstance { get; set; }
    Property Value
    Type Description
    System.Net.Http.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
    public string UploadUrl { get; set; }
    Property Value
    Type
    System.String

    Url

    Specifies URL to read the files from server.

    Declaration
    public string Url { get; set; }
    Property Value
    Type
    System.String

    Methods

    Dispose(Boolean)

    Dispose unmanaged resources in the component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Boolean value to dispose the object.

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    Task.

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved