Skip to main content

FileManagerExtension.DownloadFiles(FileManagerSettings, FileSystemProviderBase, FileManagerFileDownloadingEventHandler) Method

Returns the binary content of downloaded files from the FileManager with the specified settings.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static FileStreamResult DownloadFiles(
    FileManagerSettings settings,
    FileSystemProviderBase fileSystemProvider,
    FileManagerFileDownloadingEventHandler fileDownloadingDelegate
)

Parameters

Name Type Description
settings FileManagerSettings

A FileManagerSettings object that is the file manager settings.

fileSystemProvider FileSystemProviderBase

A FileSystemProviderBase object that is the custom file system provider to which the FileManager extension is bound.

fileDownloadingDelegate FileManagerFileDownloadingEventHandler

A delegate method that will handle the event that fires on the server side before a file download starts, allowing you to cancel the action.

Returns

Type Description
FileStreamResult

A FileStreamResult object that is a binary content sent to the response.

See Also