Back to Devexpress

FileManagerSettingsUpload.Enabled Property

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

latest3.3 KB
Original Source

FileManagerSettingsUpload.Enabled Property

Gets or sets a value that indicates whether the upload panel is enabled.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true if the upload panel is enabled; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Enabled
ASPxFileManager

.SettingsUpload .Enabled

|

Remarks

The file manager does not display the upload panel when the Enabled property is set to false.

Note

If you are experiencing the “Access is denied” or “Permission Denied” error during large file uploads to the IIS 5.x or Cassini Web Server, we recommend that you execute the following command at the server, to work around the problem:

%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/security/requestFiltering -requestLimits.maxAllowedContentLength: <new-request-length>

Here, <new-request-length> is the new, larger value of the request length.

Example

Web Forms (in markup):

aspx
<dx:ASPxFileManager ID="fileManager" runat="server" >
    <SettingsUpload ShowUploadPanel="true" Enabled="true" AutoStartUpload="true" />
    ...
</dx:ASPxFileManager>

Web Forms (in code):

csharp
ASPxFileManager fm = new ASPxFileManager();
...
fm.SettingsUpload.ShowUploadPanel = true;
fm.SettingsUpload.Enabled = true;
fm.SettingsUpload.AutoStartUpload = true;

MVC:

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

See Also

ASPxFileManager

SettingsUpload

UploadPanel

File Manager

File Upload

FileManagerSettingsUpload Class

FileManagerSettingsUpload Members

DevExpress.Web Namespace