I've implemented CKFinder with CKEditor 3.0. Although I've set the config file to the correct folder path for images, it always defaults to a directory called images that doesn't exist. Has anyone else had this happen? Any advice? Thanks.
Thu, 11/19/2009 - 17:44
#1
Re: File Browser won't browse my files
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: File Browser won't browse my files
The following is some code form my config.php file:
//use custom user folder for image browsing and upload
$user_id = $_SESSION["userinfo"]["user_id"];
$baseUrl = "./documentSetting/userImages/".$user_id."/";
$baseDir = "http://domain.com/documentSetting/userImages/".$user_id."/";
//Now the config portion
$config['ResourceType'][] = Array(
'name' => 'Images',
'url' => 'images',
'directory' => 'images',
'maxSize' => 0,
'allowedExtensions' => 'bmp,gif,jpeg,jpg,png',
'deniedExtensions' => '');
/*
I believe the above code is forcing CKFinder to look at a folder called "Images", when based on the value of my $baseUrl, I need it to look in a folder named for the logged in userid, not images. If I change it or comment it out, then CKFinder doesn't work properly. Thanks.
*/
Re: File Browser won't browse my files
Re: File Browser won't browse my files
Re: File Browser won't browse my files
$config['ResourceType'][] = Array(
'name' => 'Images',
'url' => '/outerFolder/innerFolder/'.$user_id,
'directory' => '',
'maxSize' => 0,
'allowedExtensions' => 'bmp,gif,jpeg,jpg,png',
'deniedExtensions' => '');
I'm way over my deadline because of this product and my client is ready to dump CKFinder altogether. Please help!!!
Re: File Browser won't browse my files
Re: File Browser won't browse my files
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+