forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: afrohead on February 18, 2008, 11:07:50 pm

Title: Point an Album to Another Directory on Server
Post by: afrohead on February 18, 2008, 11:07:50 pm
Is it possible to create an album that points to a directory outside of the Coppermine albums directory?  I have a directory with thousands of images that have been uploaded from my bbs over the years and I would like to have an album that displays these images from this current source directory.  I don't want to have to do any batch uploading and create duplicate images in the coppermine albums directories for obvious disk space reasons. 
Title: Re: Point an Album to Another Directory on Server
Post by: Joachim Müller on February 19, 2008, 08:17:21 am
The magical term is "symlinks", assuming that your server is Unix/Linux-driven. If this is the case, ask your webhost to create a symlink within your albums folder that points to that other folder outside of coppermine's folder structure. Keep in mind that this will only work if the folder is on the same server - you can't use this to enable remote storage (on a different server). Once your webhost has created that symlink, you can batch-add the files residing within that other folder.