Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi, I am trying to assign a folder in the site root. By default the CouchCMS uploads folder structure is:

Code: Select all
/public_html/couch/uploads/
/public_html/couch/uploads/file/
/public_html/couch/uploads/flash/
/public_html/couch/uploads/image/
/public_html/couch/uploads/media/

instead, I want the uploads folder out of couch folder to have structure like

Code: Select all
/public_html/uploads/
/public_html/uploads/file/
/public_html/uploads/flash/
/public_html/uploads/image/
/public_html/uploads/media/

In this case, how do I assign the K_UPLOAD_DIR? Let me know which one is correct below:

Code: Select all
1. define( 'K_UPLOAD_DIR', '../uploads' );
2. define( 'K_UPLOAD_DIR', '../uploads/' );
3. define( 'K_UPLOAD_DIR', '/uploads' );
4. define( 'K_UPLOAD_DIR', '/uploads/' );


By the way, will it automatically assign the subfolders "file", "flash", "image", and "media" to the new main "uploads" folder location?

Thank you!
As stated in the config file itself -
// 12.
// Upload folder if not using the default upload folder within 'couch'.
// Should be relative to your site (don't forget to set write permissions on it).
// No leading or trailing slashes please.

- the specified path should be relative to your site's root (which for Couch is the parent folder of the 'couch' installation folder) and have no leading or trailing slashes.

So, to answer your question, to set the upload directory as /public_html/uploads/ the setting should be simply -
Code: Select all
define( 'K_UPLOAD_DIR', 'uploads' );

will it automatically assign the subfolders "file", "flash", "image", and "media" to the new main "uploads" folder location?

Yes, it will (provided you have set the right permissions on the new folder).

Hope this helps.
Once again thank you for the awesome support, have a great day!
3 posts Page 1 of 1
cron