Hello,
What you want is done by changing the appropriate options in configuration file (filemanager.config.js). Here is how you can specify a different folder located under
serverRoot.
"serverRoot": true,
"fileRoot": "myapp/documents/",
If you want to use a folder
not located under the
serverRoot then
"serverRoot": false,
"fileRoot": "/home/secret/docs/",
Note: Make sure that the server user has appropriate read/write permissions to this folder.
If you want to do dynamically via php code then you can do it following way
$fPath = '/home/secret/docs/';
$fm = new Filemanager();
$fm->setFileRoot($fPath);
Regards,