Skip to main content

UploadControlExtension Class

An extension object implementing the UploadControl functionality.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5


public class UploadControlExtension :

The following members return UploadControlExtension objects:


To declare the UploadControl in a View, invoke the ExtensionsFactory.UploadControl helper method. This method returns the UploadControl extension that is implemented by the UploadControlExtension class.

To configure the UploadControl extension, pass the UploadControlSettings object to the ExtensionsFactory.UploadControl helper method as a parameter. The UploadControlSettings object contains all the UploadControl extension settings.

View Example: How to upload a file

Refer to the UploadControl Overview topic to learn how to add the UploadControl extension to your project.


The example below demonstrates how to enable drag-and-drop support in the Upload Control extension and allow users to upload multiple files simultaneously:

@Html.DevExpress().UploadControl(settings => {
    settings.Name = "UploadControl";
    settings.ShowUploadButton = true;
    settings.ShowProgressPanel = true;
    settings.UploadMode = DevExpress.Web.UploadControlUploadMode.Advanced;
    settings.AdvancedModeSettings.EnableMultiSelect = true;
    settings.AdvancedModeSettings.EnableFileList = true;
    settings.AdvancedModeSettings.EnableDragAndDrop = true;

View Example: Upload Control for ASP.NET MVC - How to upload multiple files simultaneously

Online Example

View Example: Grid View for ASP.NET MVC - How to display data from an uploaded Excel file


See Also