Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Collapse]File Management
   [Expand]Product Information
   [Collapse]File Manager
     ASPxFileManager Overview
    [Collapse]Concepts
      Thumbnails
      View Modes
      Custom Columns
      Toolbar
      Uploading Files
      File Download
      Context Menu
      Access Control
     [Expand]File System Providers
      Security Issues
    [Expand]Visual Elements
    [Expand]Member Tables
    [Expand]Examples
   [Expand]File Upload
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

File Download

You can provide end-users with the ability to download files selected within the ASPxFileManager. To enable this functionality, set the FileManagerSettingsEditing.AllowDownload property to true.

Temporary File Folder

When multiple file selection is enabled (the FileManagerSettings.EnableMultiSelect property is set to true), ASPxFileManager saves each downloaded file into a temporary file. The file name can be specified by the FileManagerSettingsEditing.DownloadedArchiveName property within a specific server folder. You can specify this folder using the FileManagerSettingsEditing.TemporaryFolder property ("~/FileManagerTemp" by default). Ensure that the ASP.NET application has 'write' access to the folder on the server.

Expanded Download Initiation

A file download can be initiated in the following manner.

  • Via a user interface.

    Clicking the specific download button, or the Download context menu item initiates a download of the selected files.

  • Programmatically.

    To download a file, call the ASPxClientFileManagerFile.Download client method of the object that represents the file.

Expanded File Processing

ASPxFileManager allows you to process the downloaded file and cancel the file download if required. You can respond to the initiated file download operation in the following manner.

For instance, you can use a server-side event to add a watermark to downloaded image files.

How would you rate this topic?​​​​​​​