Uploads missing the vital /

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
ralphhos
New Member
New Member
Posts: 6
Joined: Wed Sep 09, 2009 12:02 pm

Uploads missing the vital /

Post by ralphhos »

Hi all,

  Having a bit of a weird one. When a client uploads a document using the File Manager, all looks perfect. If they click on the file to view it through the file manager in the admin section, the url is missing the forward slash so it is throwing up an error. Example:

What should look like http://www.cmsmadesimple.org/uploads/Da ... Agenda.doc looks like this http://www.cmsmadesimple.orguploads/Dai ... Agenda.doc

I had a look through the forum but it was about putting the forward slash in the config file but I am afraid of messing up the website. Can anyone help with where I can fix this or if they had similar problems that they fixed?

Thanks a million!
Peciura

Re: Uploads missing the vital /

Post by Peciura »

what uplod url is defined in '/config.php'. Is it smth like

Code: Select all

$config['uploads_url'] = $config['root_url'] . '/uploads';
ralphhos
New Member
New Member
Posts: 6
Joined: Wed Sep 09, 2009 12:02 pm

Re: Uploads missing the vital /

Post by ralphhos »

Hey Peciura,


Thanks for the reply. Yeah it is:

#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';


Should it be?

$config['uploads_url'] = $config['root_url'] . '/uploads';
Post Reply

Return to “CMSMS Core”