Page 1 of 1

[fixed] Unable to set a different $config['uploads_path']

Posted: Mon Jun 25, 2012 12:51 pm
by brunettdan
Hi,

I've set ..

Code: Select all

$config['uploads_path'] = '/xxx/xxx/public_html/uploads/files/';
$config['uploads_url'] = $config['root_url'] . '/uploads/files/';
.. and getting the following error message when trying to create a folder.
You are not allowed to modify files outside the uploads-dir! (That requires the Advanced File Management permission)
Also the /files/ folder contains other folders and files but they are invisible in File Manager. Turning on advanced mode reveals all the files under /public_html/.

I've also set..

Code: Select all

$config['image_uploads_path'] = '/xxx/xxx/public_html/uploads/files/images/';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/files/images/'; 
.. and that works fine!

EDIT: Fixed, works in beta3

Re: Unable to set a different $config['uploads_path']

Posted: Mon Jun 25, 2012 2:48 pm
by calguy1000
fixed in svn.
The uploads_path and uploads_url still must reside somewhere UNDER the root path/root url.

Re: [fixed?] Unable to set a different $config['uploads_path

Posted: Mon Jun 25, 2012 11:49 pm
by brunettdan
Hey, still not working after upgrading to beta2 then to latest svn 8117.

Config file:

Code: Select all

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'xxx';
$config['db_username'] = 'xxx';
$config['db_password'] = 'xxx';
$config['db_name'] = 'xxx';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://gadden.jexpo.se';
$config['timezone'] = 'Europe/Stockholm';
$config['default_encoding'] = 'utf-8';
$config['uploads_path'] = '/xxx/xxx/public_html/uploads/files/';
$config['uploads_url'] = 'http://gadden.jexpo.se/uploads/files/';
$config['image_uploads_path'] = '/xxx/xxx/public_html/uploads/files/images/';
$config['image_uploads_url'] = 'http://gadden.jexpo.se/uploads/files/images/';
$config['url_rewriting'] = 'mod_rewrite';
?>
Trying to create a folder in File Manager (with admin) and it still says "You are not allowed to modify files outside the uploads-dir! (That requires the Advanced File Management permission)"

Any ideas?