PhysicalFileSystemProvider Class

Provides APIs to manage a physical file system.

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public class PhysicalFileSystemProvider :
    IFileSystemItemLoader,
    IFileSystemItemEditor,
    IFileUploader,
    IFileContentProvider

Remarks

Use the PhysicalFileSystemProvider file system provider to interact with a physical file system.

var config = new FileSystemConfiguration {
    Request = Request,
    FileSystemProvider = new PhysicalFileSystemProvider(_hostingEnvironment.ContentRootPath + "/wwwroot"),
    AllowDownload = true,
    AllowedFileExtensions = new[] { ".js", ".json", ".css" }
};

Concepts

Online Demo

Online Example

Inheritance

Object
PhysicalFileSystemProvider
See Also