Hello,
I'm using CKFinder for a Drupa 7 website. Linux environment.
When I upload an image, I'm getting an extra / in the file path
i.e. //images/image_filename.jpg
I checked my .htaccess and it's ok. Also, there is no trailing slash set in your base url in my settings.php.
Any ideas?
Thx-in-Advance,
John
I'm using CKFinder for a Drupa 7 website. Linux environment.
When I upload an image, I'm getting an extra / in the file path
i.e. //images/image_filename.jpg
I checked my .htaccess and it's ok. Also, there is no trailing slash set in your base url in my settings.php.
Any ideas?
Thx-in-Advance,
John

Re: Extra / in CKFinder file path
What are you using for these settings in your config.php file:
$baseUrl
$baseDir
$config['AccessControl']
$config['ResourceType']
Be Well,
Joe
Re: Extra / in CKFinder file path
Here are the settings in the CKFinder config.php file:
$baseUrl = '/ckfinder/userfiles/';
$baseDir = resolveUrl($baseUrl);
require_once '../../../../includes/filemanager.config.php';
$config['AccessControl'][] = Array(
'role' => '*',
'resourceType' => '*',
'folder' => '/',
'folderView' => true,
'folderCreate' => true,
'folderRename' => true,
'folderDelete' => true,
'fileView' => true,
'fileUpload' => true,
'fileRename' => true,
'fileDelete' => true);
$config['ResourceType'][] = Array(
'name' => 'Files', // Single quotes not allowed
'url' => $baseUrl . 'files',
'directory' => $baseDir . 'files',
'maxSize' => 0,
'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip',
'deniedExtensions' => '');
$config['ResourceType'][] = Array(
'name' => 'Images',
'url' => $baseUrl . 'images',
'directory' => $baseDir . 'images',
'maxSize' => "16M",
'allowedExtensions' => 'bmp,gif,jpeg,jpg,png,avi,iso,mp3',
'deniedExtensions' => '');
$config['ResourceType'][] = Array(
'name' => 'Flash',
'url' => $baseUrl . 'flash',
'directory' => $baseDir . 'flash',
'maxSize' => 0,
'allowedExtensions' => 'swf,flv',
'deniedExtensions' => '');
Thanks,
John
Re: Extra / in CKFinder file path
I set up a Drupal install to look at this further, but I'm having a problem myself.
If I comment out loading the filemanager file:
require_once '../../../../includes/filemanager.config.php';
I'm able to use the file browser window and do direct uploads and the paths look good on both.
But when I use the filemanager file, I get the empty "System Error" alert box. That usually means a path problem. I'm not sure if the problem is with the filemanager file or one of the many URL and Directory paths you need to enter during the set up process. I'll let you know if I'm able to duplicate your problem.
Be Well,
Joe
Re: Extra / in CKFinder file path
http://www.irapropertymaster.com/images/image_name.jpg
http://images/image_name.jpg
http://www.irapropertymaster.com/test.htm
Re: Extra / in CKFinder file path
http://drupal.org/node/1173294
Re: Extra / in CKFinder file path
Sorry I wasn't able to help John.
Be Well,
Joe
Re: Extra / in CKFinder file path
I don't have the trailing /
Re: Extra / in CKFinder file path
http://drupal.org/node/606034/release
http://ckeditor.com/download/releases
http://ckfinder.com/download/releases
Re: Extra / in CKFinder file path
Re: Extra / in CKFinder file path
Good to know that it's being worked on.
I suggested that John roll back because I was thinking that he was already using 7.x.1.3 (his original post was on Sept 3rd, after 1.3 was released).
John,
If you haven't tried using 7.x.1.3, I would suggest trying that before rolling back to an earlier version.
Joe