I'm having a problem with trying to get CKFinder to place uploaded files into subdirectories using the php $_GET variable
this is how i have the config set up:
$baseUrl = 'xxxxxx/userfiles/'.$_GET['$DeptId'].'/'; $baseDir = 'xxxxxx/userfiles/'.$_GET['$DeptId'].'/';
Re: Userfiles Subdirectories using PHP GET ::HELP::
session_start();
$_SESSION['DeptId']=$_GET['$DeptId'];
in config.php
session_start();
/*code*/
$baseUrl = 'xxxxxx/userfiles/'.$_SESSION[DeptId'].'/';
Re: Userfiles Subdirectories using PHP GET ::HELP::
tried what you said, but no luck...it's still not working :/
any other suggestions?
Re: Userfiles Subdirectories using PHP GET ::HELP::
i'm trying to create a "userfiles/subdirectory" organization layer in order to codify uploaded file content
i've been scouring these forums for days and haven't really found an adequate way to do this....
is there some other way to achieve the same results?
Re: Userfiles Subdirectories using PHP GET ::HELP::
Thanks.
Re: Userfiles Subdirectories using PHP GET ::HELP::
i don't think i understand the solution clearly then...
could you send me a code snippet from your config.php and the file where you receive the $_GET variable? thanks in advance...
Re: Userfiles Subdirectories using PHP GET ::HELP::
Re: Userfiles Subdirectories using PHP GET ::HELP::
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Userfiles Subdirectories using PHP GET ::HELP::
Hi all,
I've used a $_SESSION variable to set $baseDir value and it works fine as described before.
The problem is that each time a photo is uploaded the system creates nested subfolders in the thumbs directory (mcith).
I think this is due to the session_start() but can't figure out to solve the problem.
This is my config.php