Variable image path on image upload
Hi,
I'm trying to dynamicly change the location where images are uploaded to depending on a different user logging on the the application.
With my current settings everything is working fine but all images are stored into the same folder on the server. The intention is that each user can work with his own image files without having to look for them between other users images.
The differtent paths for the different users will be created automaticly and set to 777 rights.
I would like to achieve something like this:
$Config['UserFilesPath'] = 'http://77.73.100.85/Mailing/Nieuw/Media/userfiles/' . $row_sessie["UserId"] . "/";
$Config['UserFilesPath'] = $EditorAssumedRoot.$Config['UserFilesPath'];
$Config['UserFilesAbsolutePath'] = '/var/www/vhosts/xentrographics.be/httpdocs/Mailing/Nieuw/Media/userfiles/' . $row_sessie["UserId"] . "/";
if (isset($_SERVER['APPL_PHYSICAL_PATH'])) {
$Config['UserFilesAbsolutePath'] = str_replace("\\","/",$_SERVER['APPL_PHYSICAL_PATH']) . substr($Config['UserFilesPath'],1);
}