You are here

public function ServletConfig::getAllowedExtensions in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

Overrides IConfig::getAllowedExtensions

File

vendor/edsdk/file-uploader-server-php/src/servlet/ServletConfig.php, line 91

Class

ServletConfig

Namespace

EdSDK\FileUploaderServer\servlet

Code

public function getAllowedExtensions() {
  $value = $this
    ->getParameterStr("allowedExtensions", null);
  if ($value === null) {
    return [];
  }
  $exts = explode(",", $value);
  for ($i = 0; $i < count($exts); $i++) {
    $exts[$i] = strtolower($exts[$i]);
  }
  return $exts;
}