Class ImageEditorUploadSettings
Represents the settings for configuring image uploads.
Inheritance
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()
Declaration
protected override Task OnParametersSetAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |