Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.0+ platform documentation. This link will take you to the parent topic of the current section.

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

FileAttachmentController Class

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

Namespace: DevExpress.ExpressApp.FileAttachments.Web

Assembly: DevExpress.ExpressApp.FileAttachment.Web.v24.2.dll

NuGet Package: DevExpress.ExpressApp.FileAttachment.Web

#Declaration

public class FileAttachmentController :
    ObjectViewController

#Remarks

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:

IFileAttachmentWeb

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

#Implements

See Also