FileSystemConfiguration.AllowedFileExtensions Property
Specifies the allowed file extensions.
Namespace: DevExtreme.AspNet.Mvc.FileManagement
Assembly: DevExtreme.AspNet.Core.dll
Declaration
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.
@(Html.DevExtreme().FileManager()
//...
.AllowedFileExtensions(new[] { ".js", ".json", ".css" })
)
Concepts
Online Demo
See Also