I've just installed CKEditor with CKFinder. The CKEditor works OK and also opens the CKFinder. So far so good. But once I want to browse a folder or upload an image CKFinder can't seem to find my upload folder.
This is the setup of the site:
url: http://www.mydomain.com
location CKEditor files: http://www.mydomain.com/admin/ckeditor/
location CKFinder files: http://www.mydomain.com/admin/ckfinder/
location upload folder: http://www.mydomain.com/upload/
the opload folder has the 777 permissions set.
The CKFinder config.php:
$baseUrl = '/upload/';
$baseDir = resolveUrl($baseUrl);
I also tried alternatives like:
- putting the upload folder inside the CKFinder folder
- $baseUrl = 'http://www.mydomain.com/upload/';
$baseDir = '/home/username/domains/mydomain.com/public_html/upload/'
The CKEditor config.js:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
// added code for ckfinder ------>
config.basePath = '/admin/ckfinder/';
config.filebrowserBrowseUrl = '/admin/ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = '/admin/ckfinder/ckfinder.html?type=Images';
config.filebrowserFlashBrowseUrl = '/admin/ckfinder/ckfinder.html?type=Flash';
config.filebrowserUploadUrl = '/admin/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files¤tFolder=/upload/';
config.filebrowserImageUploadUrl = '/admin/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images¤tFolder=/upload/';
config.filebrowserFlashUploadUrl = '/admin/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash¤tFolder=/upload/';
// end: code for ckfinder ------>
};
remark: I also tried to remove the '¤tFolder=/upload/', but also no luck.
Any suggestions?
Sat, 07/24/2010 - 15:11
#1
Re: CKEditor + CKFinder = not able to browse folders / uploa
Edit: I was getting in but I wasn't seeing the contents I'd expected. That was because way down in config.php there is
and I needed to change url and directory to "image" instead of "images"