Thw way i have my user contributed files is as follows:

sites/default/files/user_files/users/[author-name]/[node-type]/blah blah blah and so on...

so basically the users files are all in

sites/default/files/user_files/users/[author-name]

and below. at this point in the editors interface the user sees the "/sites/default/files" path at the top, along with "user_files/users". I would like to hide all the directories that is above what the user is allowed to view. so the topmost level of directories the user can see in this case should be "[author-name]". I have attached 2 images, the first is what it looks like, and the second is a gimped version of how i would like it to look.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Phliplip’s picture

Subscribe

halver’s picture

Yes, this would be handy. Might be a helpful security precaution as well.

3dloco’s picture

Issue tags: +imce, +hide, +directory, +default directory

It is very well a security precaution! subscribing

[EDIT] Can this be done with the advanced integration and hooks provided?

Thanks,

KH

luckysmack’s picture

Title: Hide directories above allowed locations » Hide /sites directories from allowed upload file paths
Version: 6.x-1.2 » 6.x-1.3

Yes i have been waiting for an update on whether this is possible for a while now. since im using 1.3 im updating it to the newest version and have re-titled it to a little more descriptive.

ufku’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Status: Active » Needs review
FileSize
2.53 KB

The patch allows alternate text for the root directory, which can be set at admin/settings/imce under common settings.
It does not hide any directories of any level.

izmeez’s picture

subscribing

ufku’s picture

Version: 6.x-1.x-dev » master
Status: Needs review » Fixed

there is now theme('imce_root_text') function waiting to be overridden.

Status: Fixed » Closed (fixed)
Issue tags: -imce, -hide, -directory, -default directory

Automatically closed -- issue fixed for 2 weeks with no activity.