public function ActionUploadCancel::run in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7
Overrides AAction::run
File
- vendor/
edsdk/ file-uploader-server-php/ src/ lib/ action/ ActionUploadCancel.php, line 24
Class
Namespace
EdSDK\FileUploaderServer\lib\actionCode
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();
}