Skip to content
Snippets Groups Projects
Commit 2b780acc authored by Kevin von Spiczak's avatar Kevin von Spiczak
Browse files

[BUGFIX] automatically create JobApplication & JobApplication/temp directories

parent 248ca597
No related branches found
No related tags found
No related merge requests found
......@@ -189,6 +189,25 @@ class JoblistController extends ActionController {
}
}
/**
* Make sure the upload folder & upload temp folder exists
*
* @return void
* @throws ExistingTargetFolderException
* @throws InsufficientFolderAccessPermissionsException
* @throws InsufficientFolderWritePermissionsException
*/
public function initializeAction(): void {
$storage = $this->fileAndFolderService->getStorage();
if (!$storage->hasFolder($this->jobFolderPath)) {
$storage->createFolder($this->jobFolderPath);
}
$tempFolderPath = $this->jobFolderPath . DIRECTORY_SEPARATOR . UploadController::JOB_APPLICATION_TEMP_FOLDER;
if (!$storage->hasFolder($tempFolderPath)) {
$storage->createFolder($tempFolderPath);
}
}
/**
* Initialize the indexAction to set the currentPageBrowserPage parameter
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment