Closed (fixed)
Project:
IMCE
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 May 2010 at 16:23 UTC
Updated:
28 Feb 2012 at 05:27 UTC
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
Comment #1
ufku commentedRoot directory is defined at admin/settings/file-system
Comment #2
Sinan Erdem commentedOK, but if I change the directory there, all files will be effected from now on, won't they? I mean CCK filefields, etc etc...
Comment #3
ufku commentedYes
Comment #4
gordon.waters commentedyes 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
Comment #5
pramudya81 commentedYeah 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
Comment #6
acIt 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.
Comment #7
ufku commented