simogeo / Filemanager

An open-source file manager released under MIT license. Up-to-date for PHP connector. This package is DEPRECATED. Now, please use RichFileManager available at : https://github.com/servocoder/RichFilemanager.
938 stars 351 forks source link

Issue with expandedFolder #533

Closed Gugulethu-Nyoni closed 7 years ago

Gugulethu-Nyoni commented 7 years ago

Hi, thank a mil to the compilers for such a great and comprehensive file management solution.

I have a slight issue with the trying to work with expandedFolder as guided on this thread

Here are code snippets from my setup:

filemanager.config.json

"serverRoot":true, "fileRoot":"/",

filemanager.php

$folderPath = '/' . $_SESSION['myfolder'] . '/'; $fm->setFileRoot($folderPath, true);

My installation is structured this way:

http://localhost/fm2/filemanager/?index.html?expandedFolder=1234/

The above works perfectly for all default functionalities:

however when I bring in the expandedFolder dynamic as shown below the code fails:

http://localhost/fm2/filemanager/?index.html?expandedFolder=1234/

Also, I note in some example config files there is code which is not included in the latest master zip or composer installation. e.g. the fileroot and serveroor attributes are not included by default in the composer installation I did just a day ago. (latest package)

Any kind of help would be appreciated.

Kind Regards Gugu

simogeo commented 7 years ago

Are you using this FM or RichFileManager ?

Gugulethu-Nyoni commented 7 years ago

I'm using RichFileManager and using the PHP connector

psolom commented 7 years ago

In this case this is the wrong repo to ask. If you use RichFileManager it was completely reworked, and doen't provide serverRoot and fileRoot options in the JSON file. These options has been moved to PHP configuration file. Check the Wiki of the RichFilemanager repository for details.

I close this issue. If you will continue to experience difficulties feel free to ask in the RichFilemanager repo.

Gugulethu-Nyoni commented 7 years ago

Thank you.