How to set the initial folder in Public tree
Great work, thanks for that! I have been trying for 6 hours now but I cannot figure out how to set the starting folder for the public files directory tree. For example the only accessible directory should be: /sites/default/files/elfinder
How should I configure this if possible at all?
ph0enix:
Try to add public:// to begin of directory path
joep.hendrix:
Thanks for your reply. Below you will see what I have entered in a profile assigned to a role. That is not working. Any help would be very much apreciated.!
ph0enix:
Try following:
Url: http://standaarddrupal7.cbdev01/sites/default/files Path: public://
joep.hendrix:
Thanks Alexey for your reply. The profile folder is working now but unfortunately thumbnails are not genereated. However, thumbnails will get generated when accessing the public folder.
I decided to try the Custom unmanaged paths and now I can see thumbnails. The problem here is that all functionality is now disabled (seet attachment).
ph0enix:
Have you checked elFindee permissions for unmanaged files? Is directory have write access by web server?
Comment 6 joep.hendrix:
Even user 1 has no permissions. In the public tree, all functionality is enabled for user 1 for that same directory!
Comment 7 ph0enix:
Try to set all permissions for this user (role)
Comment 8 joep.hendrix:
Thanks for your quick responses, I really appreciate it!
I was testing with uid=1. Nevertheless I created a role and assigned all elfinder permissions to this role and assigned the role to uid=1. No difference...
Comment 9 patrickroma:
This seems not possible at all.
Comment 10 joep.hendrix:
Since it seems not possible to configure a starting directory, I have changed it to a feature request.
markusd1984:
Has this been an option in previous versions?
See "custom path" in File System Settings https://www.drupal.org/project/elfinder/issues/1179136
I think it's essential to have this option for elfinder instead of using only admin/config/media/file-system which may be used by other applications in drupal ie. themes etc.
I suggest the ability to specify a custom path on a profile basis as this allows more access control for different kind of users.
Comment 13 hobbes_VT:
I've used the elFinder module 7.x-0.8 so far and there I could set the starting directory:
I recently received the notice that the above branch is no longer supported and upgraded to 7.x-3.x-dev and ran into the same issue. Setting the above properties for the "Custom unmanaged files path" and "Custom unmanaged files URL" resulted in the folder showing up correctly, but as read-only. The only way I could replicate the same behavior as before with the newer version is to create a profile and set the VOLUMES setting to the following:
This volume shows up correctly and is also writeable.
The only issue I have with these profiles is that if you assign the profile to two different roles and a user has both of these, the folder shows up twice ... but for now I can live with that.
Hope that helps others to find their way through these settings.
Comment 14 markusd1984:
@hobbes_VT as per your screenshot this looks like to be the generic system settings for media rather than an elfinder settings,
which wasn't noticeable in the picture of the post I linked to and thus I thought it may have been configurable within elfinder, rather than drupal global (I am using Opigno based on D7 which looks different).
Comment 15 hobbes_VT:
@markusd1984 - no, these are elFinder configuration settings - the first one is just an older version (7.x-0.8) that looks a bit like the common file systems settings. elFinder's settings are a sub-form reached through Administration>Configuration>Media>elFinder. This form is only there if you have the elFinder module installed, so I'd say these are elfinder settings and not general media settings. Don't get fooled by the breadcrumb path seen in the screenshot - this is the parent item - admin/config/media has all the subforms for any image module settings that you may have installed (and also the "File System" form) - but those screenshots are from elFinder's settings.
markusd1984:
@hobbes_VT thanks, I'm using 7.x-2.x-dev where admin/config/media/elfinder gives me only labels to configure instead of changing the actual custom path (under File system settings), which this post is referenced against :)
Seems like the options did change then?
Public files root directory label
Private files root directory label
Unmanaged files root directory label
Custom unmanaged files path
Custom unmanaged files URL


