UploadControlSettings.UploadMode Property
Specifies the control’s upload mode.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Property Value
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. |
Remarks
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()