You are here

static function FileUploaderServer::fileUploadRequest in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

1 call to FileUploaderServer::fileUploadRequest()
FlmngrServer::flmngrRequest in vendor/edsdk/flmngr-server-php/src/FlmngrServer.php

File

vendor/edsdk/file-uploader-server-php/src/FileUploaderServer.php, line 18

Class

FileUploaderServer

Namespace

EdSDK\FileUploaderServer

Code

static function fileUploadRequest($config) {
  try {
    $servlet = new UploaderServlet();
    $servlet
      ->init($config);
    $servlet
      ->doPost($_POST, $_FILES);
  } catch (Exception $e) {
    error_log($e);
    throw $e;
  }
}