aspnetmvc-devexpress-dot-web-dot-mvc-f3ac7aec.md
An extension object implementing the UploadControl functionality.
Namespace : DevExpress.Web.Mvc
Assembly : DevExpress.Web.Mvc5.v25.2.dll
NuGet Package : DevExpress.Web.Mvc5
public class UploadControlExtension :
ExtensionBase
Public Class UploadControlExtension
Inherits ExtensionBase
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;
}).GetHtml()
View Example: Upload Control for ASP.NET MVC - How to upload multiple files simultaneously
View Example: Grid View for ASP.NET MVC - How to display data from an uploaded Excel file
Object ExtensionBase UploadControlExtension
See Also