January 23, 2013
Changing the default upload directory for CKFinder
I inherited a site to maintain (and develop a bit) and it uses CKFinder with CKEditor to allow content managers to upload files via the WYIWYG. One problem with the default settings was the file url that was produced after upload. The file path took the form http://mysite.edu/sites/default/files/files/readme.pdf.
To get rid of the extraneous 'files' you need to go into sites/all/modules/ckeditor/ckfinder/config.php and find the section where $config['ResourceType'] statements occur. The URL should have only the $baseURL whereas the site I am working on had $baseUrl . 'files' .
Posted by kkwaiser at January 23, 2013 11:37 AM