Skip to main content

FileManagerExtension.DownloadFiles(FileManagerSettings, String, 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,
    string rootFolder,
    FileManagerFileDownloadingEventHandler fileDownloadingDelegate
)

Parameters

Name Type Description
settings FileManagerSettings

A FileManagerSettings object that is the file manager settings.

rootFolder String

A String value that specifies the root folder 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