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

Post Reply
brunettdan
New Member
New Member
Posts: 9
Joined: Fri Jun 01, 2012 2:54 pm

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

Post 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
Last edited by brunettdan on Wed Jul 11, 2012 9:47 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post by calguy1000 »

fixed in svn.
The uploads_path and uploads_url still must reside somewhere UNDER the root path/root url.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
brunettdan
New Member
New Member
Posts: 9
Joined: Fri Jun 01, 2012 2:54 pm

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

Post 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?
Post Reply

Return to “Closed Issues”