Back to Devexpress

FileManagerSettingsUpload.UseAdvancedUploadMode Property

aspnet-devexpress-dot-web-dot-filemanagersettingsupload-7013dff9.md

latest3.7 KB
Original Source

FileManagerSettingsUpload.UseAdvancedUploadMode Property

Gets or sets a value specifying whether the advanced upload mode is used in upload panel.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool UseAdvancedUploadMode { get; set; }
vb
<DefaultValue(True)>
Public Property UseAdvancedUploadMode As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the advanced upload mode is used; false if the standard upload mode is used.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UseAdvancedUploadMode
ASPxFileManager

.SettingsUpload .UseAdvancedUploadMode

|

Remarks

If the file upload is enabled (the FileManagerSettingsUpload.Enabled property is set to true), you can choose from two provided upload modes (Standard and Advanced) using the UseAdvancedUploadMode property.

  • In the Standard Mode , the uploaded file is sent to the server in one request and is cached in its entirety in server memory.
  • In the Advanced Mode , the uploaded file is sent to the server in small packets (one by one) and is saved into a temporary file within a specific server folder.

Concept

Upload Modes

Example

Web Forms (in markup):

aspx
<dx:ASPxFileManager ID="fileManager" runat="server" >
    <SettingsUpload Enabled="true" UseAdvancedUploadMode="true" >
        <AdvancedModeSettings EnableMultiSelect="true" />
    </SettingsUpload>
    ...
</dx:ASPxFileManager>

Web Forms (in code):

csharp
ASPxFileManager fm = new ASPxFileManager();
...
fm.SettingsUpload.Enabled = true;
fm.SettingsUpload.UseAdvancedUploadMode = true;
fm.SettingsUpload.AdvancedModeSettings.EnableMultiSelect = true;

MVC:

csharp
@Html.DevExpress().FileManager( settings => {
    settings.Name = "fileManager";
    settings.SettingsUpload.Enabled = true;
    settings.SettingsUpload.UseAdvancedUploadMode = true;
    settings.SettingsUpload.AdvancedModeSettings.EnableMultiSelect = true;
    ...
}).BindToFolder(Model).GetHtml()

Online Demo

See Also

Enabled

Upload Modes

File Manager

FileManagerSettingsUpload Class

FileManagerSettingsUpload Members

DevExpress.Web Namespace