ASP.NET Core - EJ2

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FileManagerUploadSettingsBuilder - ASP.NETCore-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FileManagerUploadSettingsBuilder

    Inheritance
    System.Object
    ControlBuilder
    FileManagerUploadSettingsBuilder
    Inherited Members
    ControlBuilder.Output
    ControlBuilder.Context
    Namespace: Syncfusion.EJ2.FileManager
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class FileManagerUploadSettingsBuilder : ControlBuilder

    Constructors

    FileManagerUploadSettingsBuilder()

    Declaration
    public FileManagerUploadSettingsBuilder()

    FileManagerUploadSettingsBuilder(FileManagerUploadSettings)

    Declaration
    public FileManagerUploadSettingsBuilder(FileManagerUploadSettings model)
    Parameters
    Type Name Description
    FileManagerUploadSettings model

    Methods

    AllowedExtensions(String)

    Specifies the extensions of the file types allowed in the file manager component and pass the extensions with comma separators. For example, if you want to upload specific image files, pass allowedExtensions as ".jpg,.png".

    Declaration
    public FileManagerUploadSettingsBuilder AllowedExtensions(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type Description
    FileManagerUploadSettingsBuilder

    AutoClose(Boolean)

    Defines whether to close the upload dialog after uploading all the files.

    Declaration
    public FileManagerUploadSettingsBuilder AutoClose(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type Description
    FileManagerUploadSettingsBuilder

    AutoUpload(Boolean)

    By default, the FileManager component initiates automatic upload when the files are added in upload queue. If you want to manipulate the files before uploading to server, disable the autoUpload property. The buttons "upload" and "clear" will be hided from file list when the autoUpload property is true.

    Declaration
    public FileManagerUploadSettingsBuilder AutoUpload(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type Description
    FileManagerUploadSettingsBuilder

    MaxFileSize(Double)

    Specifies the maximum allowed file size to be uploaded in bytes. The property is used to make sure that you cannot upload too large files.

    Declaration
    public FileManagerUploadSettingsBuilder MaxFileSize(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type Description
    FileManagerUploadSettingsBuilder

    MinFileSize(Double)

    Specifies the minimum file size to be uploaded in bytes. The property is used to make sure that you cannot upload empty files and small files.

    Declaration
    public FileManagerUploadSettingsBuilder MinFileSize(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type Description
    FileManagerUploadSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved