MCImageManager:Configuration/filesystem.rootpath

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Option: filesystem.rootpath

This option is the default root path for the MCImageManager. The path can be relative or absolute, and is the base directory the user has access to.

For example: If you try to access the following dir "/somedir1" with a root path of "/somedir1/somedir2" a hack attempt message will be displayed. (Only hackers will see this message, since legitimate users are not shown directories below the root point.)

You can also use this option to define multiple root paths, and/or name them with user-friendly aliases. This is particularly useful when directories are automatically created based on a user ID number, as it allows you to display the "/001234567" directory as the much more user-friendly "/My Pictures".

Example of usage in the config.php file

$mcImageManagerConfig['filesystem.rootpath'] = "/somedir1/somedir2";

Example of usage in the Web.Config file

<add key="filesystem.rootpath" value="/somedir1/somedir2" />

Example of multiple named root paths the config.php file

$mcImageManagerConfig['filesystem.rootpath'] = "First Pictures=/somedir1/somedir2;Second Pictures=/somedir2/somedir3;";

Example of multiple named root paths the Web.Config file

<add key="filesystem.rootpath" value="First Pictures=/somedir1/somedir2;Second Pictures=/somedir2/somedir3;" />
Personal tools