aspnetmvc-devexpress-dot-web-dot-mvc-dot-uploadcontrolsettings-f171b456.md
Specifies the control’s upload mode.
Namespace : DevExpress.Web.Mvc
Assembly : DevExpress.Web.Mvc5.v25.2.dll
NuGet Package : DevExpress.Web.Mvc5
public UploadControlUploadMode UploadMode { get; set; }
Public Property UploadMode As UploadControlUploadMode
| Type | Description |
|---|---|
| UploadControlUploadMode |
An UploadControlUploadMode enumeration value.
|
Available values:
| Name | Description |
|---|---|
| Standard |
ASPxUploadControl works in the Standard Upload Mode.
| | Advanced |
ASPxUploadControl works in the Advanced Upload Mode.
Note: The Advanced Mode requires the end-user browser to support Html5, or Silverlight plug-in (version 3 or later) to be installed in the browser.
| | Auto |
ASPxUploadControl uses Html5 technology (advanced mode). If it is unavailable, Silverlight technology (advanced mode) is used. If Silverlight is unavailable, the control works in the Standard Upload Mode.
|
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
See Also