coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: rphMedia on July 13, 2005, 12:12:06 AM

Title: Public Uploads
Post by: rphMedia on July 13, 2005, 12:12:06 AM
When anon has the ability to upload, the files go into the folder 'userpics'.  Is there a way to change this destination folder for public uploads?
Title: Re: Public Uploads
Post by: Nibbler on July 13, 2005, 12:25:26 AM
Try changing this line in upload.php

$filepath = $CONFIG['userpics'];
Title: Re: Public Uploads
Post by: rphMedia on July 13, 2005, 02:09:31 PM
Quote from: Nibbler on July 13, 2005, 12:25:26 AM
Try changing this line in upload.php

$filepath = $CONFIG['userpics'];

Well, actually that didn't work (no matter what I did) but it got me on the right track, thanks.

The exact same code is in db_input.php and I had to modify IT to make the change. I created a folder called 'public' and modified:

from
...
} else {
           $filepath = $CONFIG['userpics'];
           $dest_dir = $CONFIG['fullpath'] . $filepath;
       }...

to

...
} else {
           $filepath = 'userpics' . '/' . 'public/';
           $dest_dir = $CONFIG['fullpath'] . $filepath;
       }...

Works great...Solved!