IUploadImageContrains interface

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Contstraints for the uploaded image.

public interface IUploadImageContrains : IUploadOptions

Members

name description
IgnoreEmptyImage { get; } If the file contains an empty image, ignore it instead of raising an error.
IgnoreExtensionMismatch { get; } If set to false, the upload behavior raises an error when it detects the extension does not match the actual format of the uploaded file. For example, if the uploaded file is "test.jpg" but it has a "png" image inside it raises an error. Default is true, so such mismatches are ignored
IgnoreInvalidImage { get; } If the file contains an invalid image, ignore it instead of raising an error.
MaxHeight { get; } Maximum height in pixels of the uploaded image.
MaxWidth { get; } Maximum width in pixels of the uploaded image.
MinHeight { get; } Minimum height in pixels of the uploaded image.
MinWidth { get; } Minimum width in pixels of the uploaded image.

See Also