/** * добавление прикрепленного файла * * @param mixed $sender */ public function OnFileSubmit($sender) { $file = $this->addfileform->addfile->getFile(); if ($file['size'] > 10000000) { $this->getOwnerPage()->setError("Файл более 10М !"); return; } Helper::addFile($file, $this->_item->contact_id, $this->addfileform->adddescfile->getText(), \ZippyERP\ERP\Consts::FILE_ITEM_TYPE_CONTACT); $this->addfileform->adddescfile->setText(''); $this->updateFiles(); }