FileSystemLoadFileContentOptions.File Property

Gets the loaded file content.

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public FileSystemItemInfo File { get; }

Property Value

Type Description
FileSystemItemInfo

Information about the loaded file.

Remarks

public class MyFileSystemProvider : IFileSystemItemEditor {
    //...
    public Stream GetFileContent(FileSystemLoadFileContentOptions options) {
        string tempFileName = string.Format("{0}{1}.tmp", "prefix", Guid.NewGuid().ToString("N"));
        string tempFilePath = Path.Combine("~/temp/", tempFileName);
        //...
        return File.Open(tempFilePath, FileMode.Open, FileAccess.Read, FileShare.Read);
    }
}

Concepts

Online Demo

See Also