Skip to main content
A newer version of this page is available. .
Tab

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.v18.2.dll

Declaration

[DefaultValue(false)]
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:

Show 16 property paths
Object Type Path to EnableClientAccessRuleValidation
HtmlEditorAudioSelectorUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
HtmlEditorDocumentSelectorUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
HtmlEditorFileManagerUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
HtmlEditorFlashSelectorUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
HtmlEditorImageSelectorUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
HtmlEditorVideoSelectorUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
RichEditDocumentSelectorUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
SpreadsheetFileManagerUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
FileManagerSettingsUpload
.AdvancedModeSettings.EnableClientAccessRuleValidation
MVCxFileManagerSettingsUpload
.AdvancedModeSettings.EnableClientAccessRuleValidation
MVCxHtmlEditorAudioSelectorUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
MVCxHtmlEditorDocumentSelectorUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
MVCxHtmlEditorFileManagerUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
MVCxHtmlEditorFlashSelectorUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
MVCxHtmlEditorImageSelectorUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation
MVCxHtmlEditorVideoSelectorUploadSettings
.AdvancedModeSettings.EnableClientAccessRuleValidation

Remarks

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.

Example

Web Forms (declaratively):

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

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;

MVC:

@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;
    ...
}).BindToFolder(Model).GetHtml()
See Also