Hi,
When I used the image tab to upload my image file, then click "Browse Server" button in Image properties, but system error as shown as attachment file. Can you help to check where should I modify?
My ckeditor\config.php contents are:
CKEDITOR.editorConfig = function( config )
{
config.filebrowserBrowseUrl = 'ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = 'ckfinder/ckfinder.html?Type=Images';
config.filebrowserFlashBrowseUrl = 'ckfinder/ckfinder.html?Type=Flash';
config.filebrowserUploadUrl = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; //可上傳一般檔案
config.filebrowserImageUploadUrl = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';//可上傳圖檔
config.filebrowserFlashUploadUrl = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';//可上傳Flash檔案
};
My php sample page:
<?php
include_once 'ckeditor/ckeditor.php';
include_once 'ckfinder/ckfinder.php';
$ckeditor = new CKEditor();
$ckeditor->basePath = '/ckeditor/';
CKFinder::SetupCKEditor($ckeditor, '/ckfinder/');
$ckeditor->editor('CKEditor1');
?>
My ckfinder\config.php setting:
function CheckAuthentication()
{
return true;
$config['LicenseName'] = '';
$config['LicenseKey'] = '';
//$baseUrl = '/userfiles/';-->even I changed to 'userfiles' but it still error
$baseUrl = 'http://localhost:8080/upload/';the upload folder is on "C:\xampp\htdocs\upload"
$baseDir = resolveUrl($baseUrl);
Sat, 03/12/2011 - 15:51
#1
Re: syntax error when I click "Browse Server" button
Can you please point out where should I check? TKS!
Re: syntax error when I click "Browse Server" button
It looks like your config.php is broken (the definition of some resource types is missing).
Could you try using the fresh copy of config.php?
Change only the CheckAuthentication function and set baseDir/Url variables to the following:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: syntax error when I click "Browse Server" button
Thanks, it is work after follow as your mentioned to overwrite the fresh config.php. The upload success as shown as attached file.
Attachments: