You are here

class ActionUploadCancel in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

Hierarchy

Expanded class hierarchy of ActionUploadCancel

1 file declares its use of ActionUploadCancel
Actions.php in vendor/edsdk/file-uploader-server-php/src/lib/Actions.php

File

vendor/edsdk/file-uploader-server-php/src/lib/action/ActionUploadCancel.php, line 18

Namespace

EdSDK\FileUploaderServer\lib\action
View source
class ActionUploadCancel extends AActionUploadId {
  public function getName() {
    return "uploadCancel";
  }
  public function run($req) {
    $this
      ->validateUploadId($req);
    if (!$this->m_config
      ->doKeepUploads()) {
      try {
        UtilsPHP::delete($this->m_config
          ->getTmpDir() . "/" . $req->uploadId);
      } catch (Exception $e) {
        error_log($e);
        throw new MessageException(Message::createMessage(Message::UNABLE_TO_DELETE_UPLOAD_DIR));
      }
    }
    return new RespOk();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AAction::$m_config protected property
AAction::setConfig public function
AAction::validateBoolean protected function
AAction::validateInteger protected function
AAction::validateString protected function
AActionUploadId::validateUploadId protected function
ActionUploadCancel::getName public function Overrides AAction::getName
ActionUploadCancel::run public function Overrides AAction::run