Version 7.0
Make sure your connection is secure ("httpS:" instead of just "http:"). Click the logo above for a secure connection.
Published on: 01/19/2026, 01:06 PM by Software Developer
If you are directly installing the CMSbyCW directly under the public_html folder, you don't have to change anything. It will work out of the box.
But for those who would like to install it in a subfolder under the public_html, for example:
https://www.cmsbycw.com/docs/
You have to tweak a code in the upload-handler.php file, specifically:
Look for this line of code (at the top)
// Simple image upload handler Posts and Pages $uploadDir = __DIR__ . '/assets/images/'; $uploadUrl = '/assets/images/';
Change it to:
// Simple image upload handler $uploadDir = __DIR__ . '/docs/assets/images/'; $uploadUrl = '/docs/assets/images/';
And I will upload a sample image below:

Then let's see the folder where it got saved in ...
For this type of image upload, it usually goes to:
https://www. YOURDOMAIN . com/assets/images/
Thank you for visiting our website!