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

BinaryImageUploadValidationSettings.AllowedFileExtensions Property

Gets or sets the allowed file extensions for an uploaded file.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public override string[] AllowedFileExtensions { get; set; }

Property Value

Type Description
String[]

An array of string values that contains the allowed file extensions.

Property Paths

You can access this nested property as listed below:

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

Remarks

Use the AllowedFileExtensions property to allow end-users to upload files with the specified extensions only.

Members of an array provided by the AllowedFileExtensions property are standard file extensions which begin with a dot symbol and are separated using commas.

ASPxBinaryImage supports the following image file formats:

  • TIFF (Tagged Image File Format)
  • PNG (Portable Network Graphics)
  • GIF (Graphics Interchange Format)
  • JPEG (Joint Photographic Experts Group)
  • BMP (Windows Bitmap)

Example

AllowedFileExtensions=new String[] { ".jpe", ".jpeg", ".jpg", ".gif", ".png" };
See Also