Skip to main content

FileManagerUploadAdvancedModeSettings.EnableClientAccessRuleValidation Property

Gets or sets a value specifying whether the access rules can be validated on the client side before uploading files.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public virtual bool EnableClientAccessRuleValidation { get; set; }

Property Value

Type Default Description
Boolean false

true, to allow access rules validation on the client side; otherwise false.

Property Paths

You can access this nested property as listed below:

Object Type Path to EnableClientAccessRuleValidation
.AdvancedModeSettings .EnableClientAccessRuleValidation


When the ASPxFileManager uploads a file in advanced mode (the FileManagerSettingsUpload.UseAdvancedUploadMode property is set to true), the file is sent to the server in small packets (one at a time). The packets are saved into a temporary file until upload is complete. After that, the file manager applies access rules. If the file manager denies file upload, the control deletes the file and displays an error message.

Set the EnableClientAccessRuleValidation property to true to allow access rule validation on the client side. In this case, the file manager checks a file accessibility before the control uploads it to the server side.


Web Forms (in markup):

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

Web Forms (in code):

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


@Html.DevExpress().FileManager( settings => {
    settings.Name = "fileManager";
    settings.SettingsUpload.Enabled = true;
    settings.SettingsUpload.UseAdvancedUploadMode = true;
    settings.SettingsUpload.AdvancedModeSettings.EnableMultiSelect = true;
    settings.SettingsUpload.AdvancedModeSettings.EnableClientAccessRuleValidation = true;
See Also