public function AFile::checkForErrors in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7
1 call to AFile::checkForErrors()
- FileUploaded::checkForErrors in vendor/
edsdk/ file-uploader-server-php/ src/ lib/ file/ FileUploaded.php
1 method overrides AFile::checkForErrors()
- FileUploaded::checkForErrors in vendor/
edsdk/ file-uploader-server-php/ src/ lib/ file/ FileUploaded.php
File
- vendor/
edsdk/ file-uploader-server-php/ src/ lib/ file/ AFile.php, line 74
Class
Namespace
EdSDK\FileUploaderServer\lib\fileCode
public function checkForErrors($checkForExist) {
$this->m_commonErrors = [];
if (!Utils::isFileNameSyntaxOk($this
->getName())) {
$this->m_commonErrors[] = Message::createMessage(Message::FILE_ERROR_SYNTAX, $this
->getName());
return false;
// do not do any other checks by security reasons
}
if ($checkForExist && !$this
->exists()) {
$this->m_commonErrors[] = Message::createMessage(Message::FILE_ERROR_DOES_NOT_EXIST);
}
return true;
}