class ActionUploadCancel in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7
Hierarchy
- class \EdSDK\FileUploaderServer\lib\action\AAction
- class \EdSDK\FileUploaderServer\lib\action\AActionUploadId
- class \EdSDK\FileUploaderServer\lib\action\ActionUploadCancel
- class \EdSDK\FileUploaderServer\lib\action\AActionUploadId
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\actionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AAction:: |
protected | property | ||
AAction:: |
public | function | ||
AAction:: |
protected | function | ||
AAction:: |
protected | function | ||
AAction:: |
protected | function | ||
AActionUploadId:: |
protected | function | ||
ActionUploadCancel:: |
public | function |
Overrides AAction:: |
|
ActionUploadCancel:: |
public | function |
Overrides AAction:: |