FileManagerSettingsUpload.AllowedFolderPath Property
OBSOLETE
Use the Settings
Specifies a path to a folder, where users can upload files.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
[DefaultValue("")]
[Obsolete("Use the SettingsPermissions.AccessRules property instead.")]
public virtual string AllowedFolderPath { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
A String value that specifies the path to the specific folder, relative to the root folder assigned via 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 SpecificOnly
, the file upload is available only for the folder specified by the AllowedFolderPath
property.
Note
Do not assign absolute paths to the Allowed
property. Set only paths that are relative to the root folder specified via the File
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 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>