Skip to main content
A newer version of this page is available. .
Tab

FileManagerSettingsUpload.AllowedFolderPath Property

OBSOLETE

Use the SettingsPermissions.AccessRules property instead.

Specifies a path to a folder, where end-users can upload files.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.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
.SettingsUpload.AllowedFolderPath
HtmlEditorFileManager
.SettingsUpload.AllowedFolderPath
RichEditFileManager
.SettingsUpload.AllowedFolderPath
RichEditFolderManager
.SettingsUpload.AllowedFolderPath

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>
See Also