Change Upload Directory Change Upload Directory
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Change Upload Directory

Started by adamson67, November 23, 2007, 09:40:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

adamson67

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/

Nibbler

You could enter a relative path in config if the array is accessible via the web or use a symlink if it isn't.

adamson67

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/

Nibbler

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

adamson67

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!

Nibbler

Great. Unfortunately more people would screw up their gallery than would be helped by such an option.