THEMES
THEME SETTINGS

File Manager and File Upload - File Upload 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 MVC UploadControl extension's drag and drop capability. It allows end-users to select one or more files and drag them to the UploadControl and add the files to the extension's file list.

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

UploadControl allows you to provide external zones, where end-users can drop a file to add it to the upload control file list. You can specify an upload control drop zone using the AdvancedModeSettings.ExternalDropZoneID property. In this demo, a div element is used to add files to the upload control file list. 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.

In this demo, the events are handled to change zone style settings.

A list of files to upload, which visibility is controlled by the AdvancedModeSettings.EnableFileList property, is displayed below the control's text box, allowing end-users to remove a particular file from the list.

Version: v2017 vol 1.3
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.