hi all,
this is my first post
i have a simple question.
in the config file i have to set the baseurl where the files should be uploaded. this is ok. but i want to change the base folder to upload dependend on the user ho is logged in.
so is there an function to change the upload dir where the user can store the files out of the config file?
like:
$finder = new CKFinder() ;
$finder->BasePath = '../../' ; // The path for the installation of CKFinder (default = "/ckfinder/").
$finder->BaseUrl = 'user200/images/upload';
$finder->SelectFunction = 'ShowFileInfo' ;
$finder->Create() ;
or is that not posible?
thx
Tue, 01/05/2010 - 15:22
#1
Re: ckfinder change basepath on the fly
if user=a then use these settings, else use these other settings.
But you must do it in the config.php file.
Re: ckfinder change basepath on the fly
thats not good, in this case i think ckfinder is not the right tool for me
Re: ckfinder change basepath on the fly
You need to specify the server paths only at a server script. If you allow to specify them by a URL parameter you are running the risk that someone will be able to hack your server specifying their own paths.
Remember also that the config.php file can include other scripts to get extra info from your CMS, anything that you can do with another file manager in this regard is also doable with CKFinder.
Re: ckfinder change basepath on the fly
with the include param this could be an solution. i will try it an post the solution !
Re: ckfinder change basepath on the fly