Skip to main content

PhysicalFileSystemProvider.GetFileContent(FileSystemLoadFileContentOptions) Method

Gets the downloaded file content.

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public virtual Stream GetFileContent(
    FileSystemLoadFileContentOptions options
)

Parameters

Name Type Description
options FileSystemLoadFileContentOptions

Options related to the operation.

Returns

Type Description
Stream

The file content.

Remarks

The following example illustrates how to overwrite the GetFileContent method.

Refer to the Azure Server-Side Binding online demo to get the whole example code.

public Stream GetFileContent(FileSystemLoadFileContentOptions options) {
    //...
    string tempFileName = string.Format("{0}{1}.tmp", TempFilePrefix, Guid.NewGuid().ToString("N"));
    string tempFilePath = Path.Combine(TempDirectoryPath, tempFileName);
    //...
}
See Also