Hi all.
I'm currently trying to make CKFinder works with my kind of directories. I'm going to explain my way of coding and expose you my problem.
I have a root directory with only index.php a directory pages containing my pages and a directory called libraries where I have CKeditor in.
CKEditor works very well. CKFinder also except for a little thing.
I want every upload in a "userfiles" directory at the root of my project (so the same level than directory)
Like this :
So, I need to put
$baseUrl = 'userfiles/'; $baseDir = "../../../../../../../userfiles/";
to get the files uploaded at the right place (and the thumbs made) and to get the correct address if I call the file in the CKEditor.
So now, if I upload 2 files, I get this :
But if I chose to insert the thumbnail in CKEditor, I get code like this :
http://localhost/aet/lpqr/libraries/ckeditor/plugins/ckfinder/core/connector/php/connector.php?command=Thumbnail&type=Images¤tFolder=%2F&langCode=fr&hash=b037583b56d46d1e&FileName=27062010043.jpg

So I tried to use
'directAccess' => true,
to be able to direct access the thumb directory and there, I get :
userfiles/_thumbs/Images/27062010042.jpg
but in CKFinder, I get :
Does anyone have an idea of where the problem could be ?
Thank in advance, and if I have something to give you, tell me and I'll do
Min's
Belgium
Re: CKFinder, upload dir, and DirectAccess
Up using this other post where someone seems to have the same (more or less) problem...
viewtopic.php?f=10&t=20153
Re: CKFinder, upload dir, and DirectAccess
The problem is in baseUrl and baseDir.
Setting the following:
should help in your case.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKFinder, upload dir, and DirectAccess
No problem for delay and thanks for answer.

It worked perfectly indeed, but it doesn't do what I wanted because "aet" isn't my real root dir. the root for this site is "lpqr" so I have to changer that config everytime I upload my files on my server...
On my local server I have c:\wamp\www\aet\lpqr and on remote I have /home/lpqr/www so that's why I user the relative path using the ..
Is there a way to use the relative patch and still using the resolveUrl function ?
Thanks