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

PhysicalFileSystemProvider.GetFileContent(FileSystemLoadFileContentOptions) Method

Gets the downloaded file content.

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

#Declaration

C#
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