PDA

View Full Version : iRite image upload issues on LOCALHOST


sandy170299
08-25-2009, 11:39 AM
I'm putting together a demo using iRite and PHP, but it's not on the web anywhere - it's only running on my local machine. When I try to browse for a file, I get the following error:

XML request error: OK (200)

I've edited config.php and I thought I followed all of the instructions, but it's not working.

Can you tell me what's missing? Here is the code I edited in config.php

global $Config ;

// SECURITY: You must explicitly enable this "connector". (Set it to "true").
// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only
// authenticated users can access this file or use some kind of session checking.
$Config['Enabled'] = true ;


// 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'] = 'c:\\xampp\\htdocs\\PHP_CMS\\userfiles\\' ;

Eric Mittman
08-26-2009, 11:33 AM
The settings you are using look like they should work. One thing that I notice is that the userfiles is set at the root of the site, if the root goes to your htdocs then you should make sure to update it so it is like this:

/PHP_CMS/userfiles/

What is the exact error message that is returned, if it is more than a couple lines you can post back and attach it to your reply in a file. Also, when this occurs can you continue past the error and select a file to upload? Please post back with these details, if we can't find a problem and need to look at your files I will open a ticket for you.

sandy170299
08-26-2009, 12:29 PM
Eric, this did it /PHP_CMS/userfiles/. It's working now.

Thanks!

Eric Mittman
08-27-2009, 05:39 PM
Awesome, that is what I like to see.