public function ServletConfig::getBaseDir in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7
Overrides IConfig::getBaseDir
1 call to ServletConfig::getBaseDir()
- ServletConfig::getTmpDir in vendor/
edsdk/ file-uploader-server-php/ src/ servlet/ ServletConfig.php
File
- vendor/
edsdk/ file-uploader-server-php/ src/ servlet/ ServletConfig.php, line 69
Class
Namespace
EdSDK\FileUploaderServer\servletCode
public function getBaseDir() {
$dir = $this
->getParameter("dirFiles", null, true);
if ($dir == null) {
throw new Exception("dirFiles not set");
}
if (!file_exists($dir)) {
if (!mkdir($dir, 0777, true)) {
throw new Exception("Unable to create files directory '" . $dir . "''");
}
}
return UtilsPHP::normalizeNoEndSeparator($dir);
}