session_start(); $userId = $_SESSION['userid']; $baseDir = '../../../../i/'.$userId.'/'; $baseUrl = 'http://www.MySite.com/i/'. $userId .'/'; $config['ResourceType'] = Array( 'name' => 'Images', 'url' => $baseUrl . 'p', 'directory' => $baseDir . 'p',
With the code attached, everything works well, but during my tests changing users, unless I refresh the base page before to click on the image button, the $userId is not read. so the image link reads like this :
I could not find a way to solve this. Any hints? Thanks in advance!
Re: Dynamic uploads - last issue.
This is the way I solved my issue, it's a work around.