I made a few minor changes to the 4.7 release to create a subdirectory in the images directory for each user ID for the images they create. This will create something like:

files/images/1/
files/images/2/

etc

It should continue to work with existing images already out there.

I made the change to prevent filename clash from occuring in the image directory and an images directory from getting a really large number of files in it.

It has not been heavily tested. Any thoughts?

CommentFileSizeAuthor
image_5.module19.53 KBjw867

Comments

yvelle’s picture

I think this is a good idea, but I wonder if it shouldn't be implimented through a separate module. I'd like to see more features for these kindof options. For instance, I use the Disknode module to store files in per-user directories and I would like to be able to override the Image module to do something similar. This way files can have a nice organized structure on the server, but also be manipulated, organized, and accessed in discrete ways through Drupal. :-)

rkn-dupe’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev
Status: Needs review » Active

Is anyone else interested in this? I think a feature which allowed you to create and choose folders to upload images to when uploading images would be very useful. Making the files easier to find on the server etc.

drewish’s picture

Status: Active » Closed (duplicate)

this issue has a patch that we're working to add this feature: http://drupal.org/node/103793

Hetta’s picture

Marked the ancient http://drupal.org/node/34009 as a duplicate. That one was for version HEAD, from 2005 - not knowing the version means its patch won't work.

doc2@drupalfr.org’s picture

Yes... this feature request is duplicate but still remains under 5.x-dev version.

I just mean that there are hopes here to see this feature commited to a 5.x version! Many thanks already (cf. node/103793 from comment #3)!