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
   [Expand]File Manager
   [Collapse]File Upload
     ASPxUploadControl Overview
    [Collapse]Concepts (ASPxUploadControl)
      Upload Modes
      Allowed Content Types
      Uploading Large Files
      Multi-File Selection
      Appearance Customization
      Drag and Drop Support
      Page Life Cycle During File Upload
    [Expand]Visual Elements
  [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

Multi-File Selection

If used in Advanced Upload Mode, ASPxUploadControl supports multi-file selection capability. It allows end-users to choose several files to upload within a single file open dialog. By default, the multi-file selection mode is disabled. To enable it, switch the UploadAdvancedModeSettings.EnableMultiSelect property to true.

Note

Advanced Upload Mode implementation is based on HTML5 technology. If HTML5 support is not available in an end-user browser, Advanced Upload Mode uses technologies provided by Microsoft Silverlight. If HTML5 is not supported and Silverlight is not installed or is disabled, a specific message is rendered instead of the ASPxUploadControl, providing end-users with a Silverlight download link.

Refer to Advanced Upload Mode topic for more details.

When multi-file selection is on, the ASPxUploadControl text box is used to display information about the current file selection. When selecting a single file, the text box contains the selected file name. When multiple files are selected, the text box displays the total number of selected files. In this case, the text box' tooltip will contain a list of the selected files.

A list of files selected for upload can be easily cleared by using the Clear file selection button. By default, this button automatically appears within the text box when any file is selected. To disable this button functionality, set the ASPxUploadControl.ShowClearFileSelectionButton property to false.

In advanced upload mode, when multi-file selection is enabled, you can get the information about the current file's upload process, using the currentFileContentLength, currentFileUploadedContentLength, and currentFileProgress properties of the ASPxClientUploadControl.UploadingProgressChanged event's argument. The total upload progress information can be accessed via the totalContentLength, uploadedContentLength, and progress arguments.

You can specify the text that is shown when an error occurs in multi-file selection mode via the UploadControlValidationSettings.MultiSelectionErrorText property.

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