Hi,
I'm using the CKEditor with CKFinder. When using the "Upload" page for sending an image to the server I receive alway "Folder not found. Please refresh and try again."
Using the "Image Info"->Browse Server is not a problem. I changed the directory path for it. But how to set the path for the direct upload?
Thanks
Chris
I'm using the CKEditor with CKFinder. When using the "Upload" page for sending an image to the server I receive alway "Folder not found. Please refresh and try again."
Using the "Image Info"->Browse Server is not a problem. I changed the directory path for it. But how to set the path for the direct upload?
Thanks
Chris
Re: Beginner question about UPLOAD dir
Hi gruppenhaus ,
I've only done php integration of CKFinder.
I've added this note after my original post:
Look at the bottom of:
http://docs.cksource.com/CKFinder_2.x/D ... ntegration
It has a section called "Specifying Destination Folder for Quick Uploads ".
-----------------------------------------------------------------------------------------------
I believe that the "Upload" tab automatically looks for a folder named "images" in your base directory. You could try creating that folder and see if it fixes the problem. Make sure the folder name "images" is all lowercase.
Here's the page that explains how to integrate CKFinder with CKEditor for php.
http://docs.cksource.com/CKFinder_2.x/D ... ntegration
Setting the path is based on the URL being called, here are the default paths:
PHP
$ckeditor->config['filebrowserImageUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
JAVASCRIPT
filebrowserImageUploadUrl : '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
Notice that both say type=Images. Here is the default configuration for the ResourceType "Images" . I copied it from the config.php file in the CKFinder directory:
$config['ResourceType'][] = Array(
'name' => 'Images',
'url' => $baseUrl . 'images',
'directory' => $baseDir . 'images',
'maxSize' => "16M",
'allowedExtensions' => 'bmp,gif,jpeg,jpg,png,avi,iso,mp3',
'deniedExtensions' => '');
It says 'directory' => $baseDir . 'images',
Hope this helps, if not maybe someone else will answer
Joe
Re: Beginner question about UPLOAD dir
I created the "images" dir in all dirs & subdirs. Did not work.
in the config.php is the following:
$config['ResourceType'][] = Array(
'name' => 'Images',
'url' => $baseUrl . 'images',
'directory' => $baseDir . 'images',
'maxSize' => "16M",
'allowedExtensions' => 'bmp,gif,jpeg,jpg,png,avi,iso,mp3',
'deniedExtensions' => '');
$basedir is
$baseDir='/kunden/homepages/43/d263759202/htdocs/homepage-test/userfiles/';
and in this dir is an dir named "images".
But the error message is still the same.
Re: Beginner question about UPLOAD dir
You can try these suggestions and see if they help.
1) Uncomment the two error reporting lines in the config file and see if you get any useful information.
// error_reporting(E_ALL);
// ini_set('display_errors', 1);
2) Add this after your $baseDir setting, it could help if the path is incorrect somewhere:
if ( ! file_exists( $baseDir ) ) {
mkdir( $baseDir );
}
3) Reset the default directories and settings (ckfinder/userfiles).
$baseUrl = '/userfiles/'; OR '/ckfinder/userfiles/';
$baseDir = resolveUrl($baseUrl);
Check the folder permissions for the ckfinder directory and the userfiles directory.
Check your AccessControl settings (Set everything to "true"):
$config['AccessControl'][] = Array(
'role' => '*',
'resourceType' => '*',
'folder' => '/',
'folderView' => true,
'folderCreate' => true,
'folderRename' => true,
'folderDelete' => true,
'fileView' => true,
'fileUpload' => true,
'fileRename' => true,
'fileDelete' => true);
Change your ResourceType settings (just use $baseUrl and $baseDir, remove ( . 'images' )
$config['ResourceType'][] = Array(
'name' => 'Images',
'url' => $baseUrl,
'directory' => $baseDir,
'maxSize' => "16M",
'allowedExtensions' => 'bmp,gif,jpeg,jpg,png,avi,iso,mp3',
'deniedExtensions' => '');
Still use these settings for the EDITOR config srttings:
PHP
$ckeditor->config['filebrowserImageUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
JAVASCRIPT
filebrowserImageUploadUrl : '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
4) Try working with a clean install and if that works, start to make changes one at a time.
You could add another complete install directory named ckeditorTest.
Hopefully something mentioned above will do the trick,
Joe
Re: Beginner question about UPLOAD dir
thanks a lot for your help. And now something changed when
"Change your ResourceType settings (just use $baseUrl and $baseDir, remove ( . 'images' )"
After Uploading there is no more errormessage.
Please look this :
and after uploading :
1) did not changed anything
2) I checked for existance and all directorys exist. They exist and they have 777 rights ...
I don't know whats going wrong. I try to make an install on an other server.
Thanks so much for your help
chris
Attachments:
Re: Beginner question about UPLOAD dir
You're welcome, glad to hear that you're making progress.
Joe