Create folders in KCFinder

3

Is there any way / setting to create folders by KCFinder in their upload directory?

Ex: The default directory is / images, inside it would like to create other folders by KCFinder itself, but I did not find this option.



I know I could use php to create the folders, but it would be better (especially for the client) if I could do this by KCFinder .     

asked by anonymous 16.03.2017 / 14:15

1 answer

1

Within the config.php file in the root of CKFinder you indicate a location with the chain of folders to be loaded in the "Backends" block:

    $config['backends'][] = array(
    'name'         => 'default',
    'adapter'      => 'local',
    'baseUrl'      => '../../../../home/SEU DIRETÓRIO/',
    'root'         => '', // Can be used to explicitly set the CKFinder user files directory.
    'chmodFiles'   => 0777,
    'chmodFolders' => 0755,
    'filesystemEncoding' => 'UTF-8',
);

And in the block just below, you indicate the root folders of this note in the "Resource Types" block:

$config['resourceTypes'][] = array(
    'name'              => 'Caixa',
    'directory'         => 'CAIXA',
    'maxSize'           => 0,
    'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip',
    'deniedExtensions'  => '',
    'backend'           => 'default'
);
    
16.08.2017 / 14:10