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.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
Property Paths
You can access this nested property as listed below:
Object Type | Path to EnableClientAccessRuleValidation |
---|---|
FileManagerSettingsUpload |
|
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 (in markup):
<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()