public function FileUploadedQuick::upload in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2
File
- src/
Flmngr/ FileUploaderServer/ lib/ file/ FileUploadedQuick.php, line 164
Class
Namespace
Drupal\n1ed\Flmngr\FileUploaderServer\lib\fileCode
public function upload($file) {
$initName = $this
->getName();
$this
->setFreeFileName();
if (!move_uploaded_file($file['tmp_name'], $this
->getFullPath())) {
throw new MessageException(Message::createMessage(Message::WRITING_FILE_ERROR, $initName));
}
}