Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FileSystemConfiguration.AllowedFileExtensions Property

Specifies the allowed file extensions.

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

#Declaration

C#
public string[] AllowedFileExtensions { get; set; }

#Property Value

Type Description
String[]

An array of allowed file extensions.

#Remarks

The FileManager widget does not display a file if the file’s extension is not allowed. If a user tries to upload this file, the component displays an error message.

Error Message

cshtml
@(Html.DevExtreme().FileManager()
    //...
    .AllowedFileExtensions(new[] { ".js", ".json", ".css" })
)

#Concepts

#Online Demo

See Also