coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: adamson67 on November 23, 2007, 09:40:47 PM

Title: Change Upload Directory
Post by: adamson67 on November 23, 2007, 09:40:47 PM
Hi,
  Can someone point me to the post or new directions to change the upload directory? I have a webserver with a raid array and would like the upload directory to point to the albums directory on the array outside of the Coppermine source directory.

IE.
from albums/

to raid/pictures/albums/
Title: Re: Change Upload Directory
Post by: Nibbler on November 23, 2007, 09:58:38 PM
You could enter a relative path in config if the array is accessible via the web or use a symlink if it isn't.
Title: Re: Change Upload Directory
Post by: adamson67 on November 23, 2007, 10:24:37 PM
Thanks Nibbler

When I tried the symblink I get the following when doing a batch upload
/raid0/data/www/coppermine/raid0/data/media/pictures/albums/

where I expected to see just: /raid0/data/media/pictures/albums/

Not sure where I can get rid of: /raid0/data/www/coppermine/
Title: Re: Change Upload Directory
Post by: Nibbler on November 23, 2007, 10:32:31 PM
Make sure you enter the path correctly. What you want to do is move any existing pictures to the raid array, then remove the albums directory and replace it with the symlink.

rm -rf albums
ln -s /raid0/data/media/pictures/albums albums
Title: Re: Change Upload Directory
Post by: adamson67 on November 23, 2007, 10:48:51 PM
Nibbler,
That helped! I think I'm on the right path now. Would be cool if it was done via the config interface, but this will do.

Thanks again!
Title: Re: Change Upload Directory
Post by: Nibbler on November 23, 2007, 11:22:37 PM
Great. Unfortunately more people would screw up their gallery than would be helped by such an option.