FileManagerSettingsUpload.AllowedFolderPath Property
OBSOLETE
Use the SettingsPermissions.AccessRules property instead.
Specifies a path to a folder, where users can upload files.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
[DefaultValue("")]
[Obsolete("Use the SettingsPermissions.AccessRules property instead.")]
public virtual string AllowedFolderPath { get; set; }
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A String value that specifies the path to the specific folder, relative to the root folder assigned via the FileManagerSettings.RootFolder property. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to AllowedFolderPath |
---|---|
ASPxFileManager |
|
Remarks
If the FileManagerSettingsUpload.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 AllowedFolderPath property. Set only paths that are relative to the root folder specified via the FileManagerSettings.RootFolder property.
Note
Since the FileManagerSettingsUpload.AllowedFolder and 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 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>