I have read about 30 different topics about this problem and some people said they have sorted the problem and some not. I am one of those who is still struggling.
I use PHP FCKeditor and everything is working good on my website apart from image upload.
This is how I set up the configuration file according to one forum member from a different topic.
// Path to user files relative to the document root. $Config['UserFilesPath'] = 'http://'.$_SERVER['HTTP_HOST'].'/' ; // Fill the following value it you prefer to specify the absolute path for the // user files directory. Useful if you are using a virtual directory, symbolic // link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'. // Attention: The above 'UserFilesPath' must point to the same directory. $Config['UserFilesAbsolutePath'] = $_SERVER['DOCUMENT_ROOT'].'/' ;
And on the bottom of the same config file I set this code like this:
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'images/' ; $Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'images/' ; $Config['QuickUploadPath']['Image'] = $Config['FileTypesPath']['Image'] ; $Config['QuickUploadAbsolutePath']['Image'] = $Config['FileTypesAbsolutePath']['Image'] ;
My images are in the "images" folder like this:
When I upload the pictures using normal FTP client, FCK imports them correctly. But if I want to upload an image using FCK it says it has been uploaded successfuly but there is actually nothing in my "images" folder.
Anybody knows how to solve this?
Thanks a lot