Skip to content

How to open (exclusively) a given subfolder

pavel edited this page Dec 9, 2016 · 7 revisions

Usage

Simply pass the exclusiveFolder GET parameter into the url.

http://mydomain.tld/filemanager/index.html?exclusiveFolder=/my/sub/folder/

The given value should take path relative to the user files storage folder.

To be clear, if user folder "/home/user/files/", the application will ONLY open the folder "/home/user/files/my/sub/folder/".

See also: Passing parameters to the FM

Permissions on folder

IMPORTANT: exclusiveFolder parameter restricts the view, but it can be changed easily by user just by changing parameter value in URL. In other words this method is not safe to prevent users for browsing the default root folder. This is not a permission mechanism. It just applies on displaying files.

Please, do use the connector technique on how to setup dynamic user folder to prevent users to access unwanted/forbidden folders.

Combined usage

The use of exclusiveFolder parameter can be combined with expandedFolder option. Read about expandedFolder parameter

Clone this wiki locally