The requested page is not available for the requested platform. You are viewing the content for Default platform.

FileAttachmentController Class

A ViewController that provides the Download Action to download file attachments.

Namespace: DevExpress.ExpressApp.FileAttachments.Web

Assembly: DevExpress.ExpressApp.FileAttachment.Web.v19.1.dll


public class FileAttachmentController :
Public Class FileAttachmentController
    Inherits ObjectViewController


The FileAttachmentController Controller is activated in List and Detail Views when the FileAttachmentAttribute is applied to the current View's object type. The FileAttachmentAttribute.FileDataPropertyName parameter passed to the attribute specifies the IFileData type property that stores files to be downloaded by the FileAttachmentController's FileAttachmentController.DownloadAction:


To execute custom code when a file is downloaded, override the FileDataDownloader.DownloadCore method. For details, refer to the FileDataDownloader class description.


See Also