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

ASPxHtmlEditorUploadValidationSettingsBase.AllowedFileExtensions Property

Gets or sets the file extensions allowed for upload in the File Manager used within built-in dialogs.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

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

Property Value

Type Description
String[]

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

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AllowedFileExtensions
ASP.NET Controls and MVC Extensions ASPxHtmlEditorAudioUploadSettings
.ValidationSettings .AllowedFileExtensions
ASPxHtmlEditorFlashUploadSettings
.ValidationSettings .AllowedFileExtensions
ASPxHtmlEditorImageUploadSettings
.ValidationSettings .AllowedFileExtensions
ASPxHtmlEditorVideoUploadSettings
.ValidationSettings .AllowedFileExtensions
ASP.NET MVC Extensions MVCxHtmlEditorAudioUploadSettings
.ValidationSettings .AllowedFileExtensions
MVCxHtmlEditorFlashUploadSettings
.ValidationSettings .AllowedFileExtensions
MVCxHtmlEditorImageUploadSettings
.ValidationSettings .AllowedFileExtensions
MVCxHtmlEditorVideoUploadSettings
.ValidationSettings .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.

Example

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