Hi,

I want my users to be able to upload and use files in a directory outside sites/default/files. For example to sites/my/file. Is it possible??

Thanks...

Comments

ufku’s picture

Root directory is defined at admin/settings/file-system

Sinan Erdem’s picture

OK, but if I change the directory there, all files will be effected from now on, won't they? I mean CCK filefields, etc etc...

ufku’s picture

Yes

gordon.waters’s picture

yes I would like to see this feature.

I have a site that uses /images as well as sites/default/files and I would like to use both.

Thanks

pramudya81’s picture

Yeah I missed this issue. I did not realize that IMCE on Drupal 6 stores by default on http://www.mysite.com/sites/default/files/u2/image.jpg rather than http://www.mysite.com/files/u2/image.jpg

So I just realized this after several times. So now nodes submitted before I upgrade to Drupal 6 are no longer showing the image due to this issue.

Now my question is Has anyone ever try to update the img src path?
And how to do it?

I can not imagine if I need to do this all manually....

Please help

ac’s picture

It would be really nice to be able to set an IMCE directory that is out of the filesystem directory - or just allow for a path alias to be used when the image is inserted. The reasoning behind this is that if you run development/staging/live servers and use IMCE to write image filepaths then you are forced into having sites/$siteaddress/files (or some variation on this - but always with the $siteaddress variable in there) in the filepath. The most common solution for the dev/staging/live issue is using mod_rewrite to rewrite sites/$siteaddress/files to just files. This allows you to set filepaths in nodes as /files/$filename. If you could set IMCE to rewrite its filepaths then we could finally solve this problem.

ufku’s picture

Status: Active » Closed (fixed)