aspnetmvc-devexpress-dot-web-dot-mvc-9378b5f6.md
Contains the UploadControl extension settings.
Namespace : DevExpress.Web.Mvc
Assembly : DevExpress.Web.Mvc5.v25.2.dll
NuGet Package : DevExpress.Web.Mvc5
public class UploadControlSettings :
SettingsBase
Public Class UploadControlSettings
Inherits SettingsBase
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.
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
Object SettingsBase UploadControlSettings
See Also