I have a custom CCK Content type which has an image field in it. Im using imagecache to be able to dynamically resize the image. It works without any hassels.

The problem that im facing is that whenever i upload an image, it is stored under the "files" folder. And since im uploading images as well as pdf's i want to be able to store all the images under "files/images" folder. This will not only help me in keeping the file structure well organized but will also help me when i have a multisite Drupal instance.

Any ideas or suggestions on how i can achieve this.

Many thanks.

Comments

vm’s picture

you have the ability to choose the path that imagefield uplaods folders to during the imagefield creation in teh content type

goto administer -> content types
edit the content type in questions
click the manage fields tab
click configure next to your image field
set Image path

also note that when using multisites, you don't have to share a files folder, each site can have its own files folder.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

janwari’s picture

thanks