Post by techpop » Mon Mar 09, 2009 11:23 am

I finally figured out how to change the configuration for fckeditor file uploads. This was causing me a problem because my opencart install was not in the docroot /, I had it in a shared folder with other projects, so the root path was example.com/myproject/

Digging into the myconfig.php I ended up making the following adjustments:

Code: Select all

// 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'] = dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))))) . '/' ;

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/' . basename($Config['UserFilesAbsolutePath']) . '/';

Hope this helps...

Newbie

Posts

Joined
Tue Feb 17, 2009 2:55 am
Who is online

Users browsing this forum: No registered users and 9 guests