-
Notifications
You must be signed in to change notification settings - Fork 251
How to open (exclusively) a given subfolder
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
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.
If you interested more secure solution you have to use server-side restriction, that is completely connector-specific. Check out solutions for some connectors:
The use of exclusiveFolder
parameter can be combined with expandedFolder
option.
Read about expandedFolder parameter