Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Drag and Drop Support

Drag an image here
Clear selectionSelect an image for upload...

You can upload JPG, GIF, or PNG file.
Maximum file size is 4MB.

Note. The drag and drop functionality requires the end-user's browser to support HTML5 technology. It means that it works in modern browsers only: IE10+, Safari 6+, Firefox 4+, Google Chrome, and Opera 12+.

All files uploaded to this demo will be automatically deleted in 5 minutes.

This demo illustrates the DevExpress ASP.NET Upload Control’s (ASPxUploadControl) support for drag and drop operations. This feature allows end-users to select one or more files and drag them to the upload control and add files to the control file list.

By default, drag and drop functionality is disabled. To enable it, set the UploadMode property to Advance and switch the EnableDragAndDrop property to true.

The ASPxUploadControl allows you to specify external zones where files can be dropped and added to the upload control’s file list. To specify drop zones, list zone IDs in the ExternalDropZoneID property. When a file is being dragged over a drop zone, the following events are raised.

  • The DropZoneEnter event is raised when the mouse enters a drop zone element while dragging a file.
  • The DropZoneLeave event is raised when the mouse leaves a drop zone element while dragging a file.
Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxFileManagerAndUploadDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxFileManagerAndUploadDemos