Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-12-07 14:15:57

Daves
New member
Registered: 2009-12-07
Posts: 1

problem with image upload

hello everybody,

i implemented xinha one week ago and i still have a single problem with the image upload...

i configured the config-file but and the image-upload was succefully
(files were uploaded to my configured folder).
but when i want to insert one of these images to my document i still uses the wrong path (the predefined "./demo_images")...

This is a part of my config.inc.php:

* CHANGE THIS: for out-of-the-box demo purposes we're setting this to ./demo_images
* which has some graphics in it.
*/

// $IMConfig['images_dir'] = "/some/path/to/images/directory;

$IMConfig['images_dir'] = "../../../images/uploads";

Maybe someone knows about the right configuration - I would be beside of myself with joy..

Best regards,
Dave

Offline

#2 2009-12-07 19:27:04

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: problem with image upload

You must also set images_url

/**
* URL of directory containing images.
*
* The URL to the above path, the web browser needs to be able to see it.
* It can be protected via .htaccess on apache or directory permissions on IIS,
* check you web server documentation for futher information on directory protection
* If this directory needs to be publicly accessiable, remove scripting capabilities
* for this directory (i.e. disable PHP, Perl, CGI). We only want to store assets
* in this directory and its subdirectories.
*
* CHANGE THIS: You need to change this to match the url where you have Xinha
* installed. If the images show up blank chances are this is not set correctly.
*/

// $IMConfig['images_url'] = "/url/to/above";

// try to figure out the URL of the sample images directory. For your installation
// you will probably want to keep images in another directory.

$IMConfig['images_url'] = str_replace( "backend.php", "", $_SERVER["PHP_SELF"] ) . "demo_images";

James Sleeman

Offline

#3 2010-07-08 20:12:22

campusano
New member
Registered: 2010-07-08
Posts: 2

Re: problem with image upload

Offline

#4 2010-07-22 23:43:46

ChrisBrad51
New member
Registered: 2010-07-22
Posts: 2

Re: problem with image upload

Yeh, I had the same problem also but managed to fix it with your solutions campusano. Thumbs up!




fat burning furnace review

Last edited by ChrisBrad51 (2011-02-26 00:36:34)

Offline

#5 2010-07-30 12:11:05

Janethalloren11
New member
Registered: 2010-07-30
Posts: 2

Re: problem with image upload

campusano, I have checked the config file that you have mentioned here..:) Now it becomes easier for me to upload image...Thanks to you....

Offline

#6 2010-07-31 06:10:07

annamartha432
New member
Registered: 2010-07-31
Posts: 1

Re: problem with image upload

Hay campusano, thanks for your solution. I have checked your config file, its really helpful.
Thanks to all.

French chateau to rent rent large house in France

Last edited by annamartha432 (2013-04-19 08:51:06)

Offline

#7 2010-08-02 11:43:01

rickyjon
New member
Registered: 2010-08-02
Posts: 2

Re: problem with image upload

Daves, at first I have to face this error while uploading a image...:(

But now i can do it. I am grateful to gogo...Because i follow the code that he has given here..:)

Offline

Board footer

Powered by FluxBB