MCFileManager:JS options/path

From Moxiecode Documentation Wiki

Jump to: navigation, search

Option: path

This option enables you to specify a default start path, this path will be used when a empty URL is passed to the script or when the remember_last_path option is disabled or when the user starts the MCFileManager for the first time. If this path isn't within the path returned by the Authenticator or within the path configured it will not be used, this is for security reasons a user would other wise be able to specify any path with a simple JavaScript call.

Example of usage in init call on page level

mcFileManager.init({
	path : "/somedir/somedir2"
});

Example of usage in mcFileManager.open call

<a href="javascript:mcFileManager.open('example1','url','','',{path : "/somedir/somedir2"});">[Browse]</a>
Personal tools