Create folders in Kcfinder

Asked

Viewed 82 times

2

Is there any way/configuration to create folders by Kcfinder in his uploads directory?

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

inserir a descrição da imagem aqui

I know I could use php to create the folders, but it would be better (mainly for the client) if I could do it by myself Kcfinder.

1 answer

1


Inside the config.php file at the Ckfinder root 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 that 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'
);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.