ResponsiveFilemanager icon indicating copy to clipboard operation
ResponsiveFilemanager copied to clipboard

Using $_SESSION["RF"]["subfolder"] Not working

Open smuglet opened this issue 7 years ago • 4 comments

Any way to set the subfolder when using stand-alone-file-manager? I've set the session as described "$_SESSION["RF"]["subfolder"] ="subfolder/name/" of course I've change the subfolder details... but it seem not to be listened to?

smuglet avatar Nov 13 '18 11:11 smuglet

I tried and work fine please try to print $_SESSION in dialog.php

trippo avatar Nov 15 '18 17:11 trippo

@smuglet you need to set SESSION subfolder as well as when calling dialog.php, put into url param fldr= (just empty, but existant)

it will act as if it really is a root folder for that specific view

coolfocks avatar Jan 06 '19 22:01 coolfocks

Hi, I can get it to set the initial folder using the above but it does not set it as the root folder. So you can navigate above it. The root folder appears to be defined in $config and is not changed based on any parameters passed to dialog.php presently.

If I manually edit dialog.php to alter:

$config['upload_dir']='/my/new/root/folder/'; $config['current_path']='../../../my/new/root/folder/';

Then it works as I'd like (not allowing the person to navigate up the heirachy).

I don't want to fiddle with the core code though, is there some other way to prevent navigation above the subfolder? Perhaps another setting I'm missing?

Thanks.

smuglet avatar Jan 30 '19 14:01 smuglet

Here is the only way I got it to work. I created a session variable from a logged in username. I created the directory from the username if it didn't already exist. I appended the users directory to the paths in config.php so far so good.

carbycello avatar Jun 04 '21 15:06 carbycello