FileManagerSettingsUpload.AllowedFolder Property
OBSOLETE
Use the SettingsPermissions.AccessRules property instead.
Gets or sets a value that specifies whether uploading is available for a specified folder only.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
[DefaultValue(FileManagerAllowedFolder.Any)]
[Obsolete("Use the SettingsPermissions.AccessRules property instead.")]
public virtual FileManagerAllowedFolder AllowedFolder { get; set; }
Property Value
Type | Default | Description |
---|---|---|
FileManagerAllowedFolder | Any | One of the FileManagerAllowedFolder enumeration values. |
Available values:
Name | Description |
---|---|
Any | All folders within ASPxFileManager control are available for uploading files. |
SpecificOnly | Only the folder specified by the FileManagerSettingsUpload.AllowedFolderPath property, is available to upload files. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to AllowedFolder |
---|---|
ASPxFileManager |
|
Remarks
If the AllowedFolder property is set to SpeceficOnly, files can be uploaded only to a folder specified via the FileManagerSettingsUpload.AllowedFolderPath property.
To learn more, see the Uploading Files topic.
Note
Since the AllowedFolder and FileManagerSettingsUpload.AllowedFolderPath properties are now obsolete, you should use the FileManagerSettingsPermissions.AccessRules property instead. The AllowedFolder and AllowedFolderPath properties are still in effect but they have a lower priority than the AccessRules property.
For example, the code below is obsolete:
<SettingsUpload AllowedFolder="SpecificOnly" AllowedFolderPath="UploadFolder">
</SettingsUpload>
You should use the following code instead:
<SettingsPermissions>
<AccessRules>
<dx:FileManagerFolderAccessRule Upload="Deny" />
<dx:FileManagerFolderAccessRule Upload="Allow" Path="UploadFolder" />
</AccessRules>
</SettingsPermissions>