When I use the upload browser it uploads my images to the /UserFiles/ directory. But when I try to Browse Server for images, it displays the /UserFiles/Images/ directory. So I'm unable to select the images I just uploaded. I'm sure it's a configuration issue I'm missing.
thank, Lee
thank, Lee
Re: Uploading images to wrong directory
Re: Uploading images to wrong directory
Re: Uploading images to wrong directory
right at the bottom you will get config options for File, Image, Flash and Media.
The FileTypesAbsolutePath is the path it uploads to when you browse the server and use the upload option there (probably set to:
($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
Either blank or, if its set, $Config['UserFilesAbsolutePath'], which is set at the top of config.php.
If you use the Upload tab it takes to path from $Config['QuickUploadAbsolutePath'].
I normally set this to equal the FileTypesAbsolutePath so I know it uploads to the same place.
E.g.
$Config['QuickUploadAbsolutePath']['Image']= $Config['FileTypesAbsolutePath']['Image'] ;
I am not sure if this is the best way to do it, but it works for me.
Zico
Re: Uploading images to wrong directory
I'm still having trouble. I have two config.php files located in these two directories.
/editor/filemanager/upload/php/config.php
/editor/filemanager/browser/default/connectors/php/config.php
The both are identical with the following code.
global $Config ;
$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/enews/UserFiles/' ;
$Config['UserFilesAbsolutePath'] = '/var/www/vhosts/domain.com/httpdocs/enews/UserFiles/' ;
$Config['ForceSingleExtension'] = true ;
$Config['AllowedExtensions']['File'] = array() ;
$Config['DeniedExtensions']['File'] = array('php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi') ;
$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image'] = array() ;
$Config['AllowedExtensions']['Flash'] = array('swf','fla') ;
$Config['DeniedExtensions']['Flash'] = array() ;
What changes do I need to make and to which config.php file or both?
Thanks,