Hi all,
I have recently integrated FCKeditor. It is good and easy to handle. but i have problem, when i try to upload the image from my local drive. It display in editor and the path it create in source is { /userfiles/uploadedimagename.jpg } .
But when i send the mail i can't see the image ; b'coz it display the path { /userfiles/imagename.jpg } . It should display the path { http://www.domainname.com/userfiles/upl ... gename.jpg }
Can anybody tell which step i am missing. Any help or suggestion will appreciate.
Thanks
Thu, 04/02/2009 - 09:11
#1
Re: Uploaded image path problem
Hi Guys,
Thanks for your help and support. I am able to solve the problem.
The changes i have done in my code is ...
open the file config.php which exist in fckeditor\editor\filemanager\connectors\php directory
and change these lines ...
// Path to user files relative to the document root.
//$Config['UserFilesPath'] = '/uploadfiles/' ;
to
$Config['UserFilesPath'] = 'http://'.$_SERVER['HTTP_HOST'].'/uploadfiles/' ;
// 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'] = ' ' ;
to
$Config['UserFilesAbsolutePath'] = $_SERVER['DOCUMENT_ROOT'].'/userfiles/' ;
And now image display in mail is working fine... enjoy ur coffee
Thanks to priyeshpandya for his reply in this post:
viewtopic.php?f=6&t=9659&p=35333&hilit=problem+in+config.php#p35333
one again thanks a lot!
Re: Uploaded image path problem
one thing i want to change in code is

$Config['UserFilesAbsolutePath'] = $_SERVER['DOCUMENT_ROOT'].'/uploadfiles/' ;
instead off
$Config['UserFilesAbsolutePath'] = $_SERVER['DOCUMENT_ROOT'].'/userfiles/' ;
Thanks
Re: Uploaded image path problem
You can also set the BaseURL when starting FCKeditor, that's what we ended up doing to solve that problem.