tags:

views:

2750

answers:

2

Hi, I am using fckeditor for php. I have set absolute path for image uploading. Image is uploaded but I am being unable to use image that is uploaded. Can anyone help me what may be problem. Here is the code i have changed in config.php file.

// Path to user files relative to the document root.

$Config['UserFilesPath'] = '/userfiles/' ;

// 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'] = '/var/www/host/mysite//userfiles/' ;

Thanks

+1  A: 

Check the permission of the folder

Alexander Corotchi
Thank you Alexander! I have a problem just to use the image not the permission. Do I need to give the path to use the uploaded image. For example the image path is shown as localhost/userfiles/image/image.jpg as it has to be localhost/folder/userfiles/image/image.jpg Thanks again
A: 

Have a look at http://www.discussweb.com/php-programming/3866-fckeditor-image-upload-path.html. It saves my lot of time.

related questions