Skip to main content
A newer version of this page is available. .
Tab

BinaryImageUploadValidationSettings.ValidateImageContent Property

Specifies whether the binary image control validates the content of an uploaded file to ensure it is an image.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

[DefaultValue(true)]
public bool ValidateImageContent { get; set; }

Property Value

Type Default Description
Boolean **true**

true to allow end-users upload image files only; false to allow end-users to upload image, and other types of files.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ValidateImageContent
ASP.NET Controls and MVC Extensions BinaryImageUploadSettings
.UploadValidationSettings.ValidateImageContent
ASP.NET Bootstrap Controls BootstrapBinaryImageUploadSettings
.UploadValidationSettings.ValidateImageContent

Remarks

By default, the binary image control allows end-users to upload images only. Set the ValidateImageContent property to false to allow end-users to upload different type of files.

See Also