Public Uploads Public Uploads
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Public Uploads

Started by rphMedia, July 13, 2005, 12:12:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rphMedia

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?

Nibbler

Try changing this line in upload.php

$filepath = $CONFIG['userpics'];

rphMedia

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!