We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Changing OW_DIR_USERFILES to some other value | Forum

Johannes Ernst
Johannes Ernst Aug 26 '13
In config.php I'm saying:
    define('OW_DIR_USERFILES', '/var/some/where/else/' );
I also symlink ow_userfiles to that directory.

Uploading of photos and attachments works: the files show up in the right directory. But oxwall does not display the attachments or the photos. The HTML IMG element for the attachment/photo is not even being generated.

If I change config.php back to the default, and I "cp -r /var/some/where/else/ ./ow_userfiles", it starts working again, but only with new uploads.

I assume I should be able to make that change to OW_DIR_USERFILES as I do it? What might be going wrong?
ross Team
Daisy Team
Daisy Sep 5 '13
Try simply changing the directory name from ow_userfiles to 'else' in these two strings.

define('OW_DIR_USERFILES', OW_DIR_ROOT.'ow_userfiles'.DS);
define('OW_URL_USERFILES', OW_URL_HOME.'ow_userfiles/');

If you want the files to be placed in the directory upper directory your software is installed (OW_DIR_ROOT), you should use the relative path to your root directory:

define('OW_DIR_USERFILES', OW_DIR_ROOT.'../../../ow_userfiles'.DS); - three directories up from your root directory.
The Forum post is edited by Daisy Sep 5 '13