FileManagerSettingsUpload.AllowedFolder Property
OBSOLETE
Use the Settings
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
NuGet Package: DevExpress.Web
#Declaration
[DefaultValue(FileManagerAllowedFolder.Any)]
[Obsolete("Use the SettingsPermissions.AccessRules property instead.")]
public virtual FileManagerAllowedFolder AllowedFolder { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
File |
Any | One of the File |
Available values:
Name | Description |
---|---|
Any | All folders within ASPx |
Specific |
Only the folder specified by the File |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Allowed |
---|---|
ASPx |
|
#Remarks
If the AllowedFolder
property is set to SpeceficOnly, files can be uploaded only to a folder specified via the AllowedFolderPath
property.
To learn more, see the Uploading Files topic.
Note
Since the Allowed
and Allowed
properties are now obsolete, you should use the FileAllowed
and Allowed
properties are still in effect but they have a lower priority than the Access
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>