Change uploads url
Posted: Wed Jun 11, 2008 8:42 am
I would like to have my uploaded files stored into a separate directory, but I would like to have them mapped on the document root.
For example, I want to have
so that I still access my images on
http://www.example.com/cmsms-root/images/logo1.gif
instead on
http://www.example.com/cmsms-root/images/[b]uploads[/b]/logo1.gif
My config is
For example, I want to have
Code: Select all
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = '/some/where/cmsms-root/uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/var/www/cmsms-new/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/images';
http://www.example.com/cmsms-root/images/logo1.gif
instead on
http://www.example.com/cmsms-root/images/[b]uploads[/b]/logo1.gif
My config is
Code: Select all
CMSMS 1.2.5
Server version: Apache/2.2.3
mysql Ver 14.12 Distrib 5.0.32, for pc-linux-gnu (i486) using readline 5.2
PHP 5.2.0-8+etch11 (cli) (built: May 10 2008 10:46:24)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies