menu

Blazor

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

    Show / Hide Table of Contents

    Class ImageEditorUploadSettings

    Represents the settings for configuring image uploads.

    Inheritance
    System.Object
    ImageEditorUploadSettings
    Namespace: Syncfusion.Blazor.ImageEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ImageEditorUploadSettings : OwningComponentBase
    Remarks

    This object allows you to specify restrictions on the types and sizes of images that can be uploaded, ensuring that only valid files are accepted according to the defined criteria.

    Constructors

    ImageEditorUploadSettings()

    Declaration
    public ImageEditorUploadSettings()

    Properties

    AllowedExtensions

    Specifies the allowed file extensions for uploaded images.

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

    A string representing the allowed file extensions for uploaded images.

    Remarks

    Example: ".jpg, .png, .gif" This property restricts the types of image files that can be uploaded based on their file extensions. Only files with the specified extensions will be allowed.

    Examples

    Default value: null

    MaxFileSize

    Specifies the maximum size (in bytes) for the uploaded image.

    Declaration
    public double MaxFileSize { get; set; }
    Property Value
    Type Description
    System.Double

    An integer representing the maximum file size in bytes.

    Remarks

    The value represents the file size in bytes. Any file larger than this size will be rejected during the upload process. This property helps prevent the upload of excessively large files that may impact performance.

    Examples

    Default value: 0

    MinFileSize

    Specifies the minimum size (in bytes) for the uploaded image.

    Declaration
    public double MinFileSize { get; set; }
    Property Value
    Type Description
    System.Double

    An integer representing the minimum file size in bytes.

    Remarks

    The value represents the file size in bytes. Any file smaller than this size will be rejected during the upload process. Use this property to ensure that images meet a certain quality or resolution standard. ///

    Examples

    Default value: 0

    Methods

    OnParametersSetAsync()

    Triggered when the component is loaded.

    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