CKFinder PHP- How to store files in different folders created with the name of month

45 Views Asked by At

I want to store files in the folder which name is the month of uploading? How to make it happen? I use the CKFinder 3.5. I found some solution on the web, but they doesn't work on version 3.5.

$sServerDir = $this->_currentFolder->getServerPath();

if ($_GET[‘command’] == ‘QuickUpload’){
 $sServerDir .= ‘/’. date(‘Y/m’); 
}

if (!file_exists($sServerDir)){ 
  CKFinder_Connector_Utils_FileSystem::createDirectoryRecursively($sServerDir);
}```
0

There are 0 best solutions below