Kaaogin
Kaaogin

Reputation: 1

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

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);
}```

Upvotes: 0

Views: 52

Answers (0)

Related Questions