'png, jpg, doc, docx, pdf, bmp, jpeg', 'skipOnEmpty' => true, 'skipOnError' => false, 'maxSize' => iniGet::getUploadMaxFilesize(false) ], ]; } public function attributeLabels() { return [ 'name' => 'Наименование документа в системе', 'description' => 'Описание', 'file' => 'Документ' ]; } public function getMimeType() { return AttachmentManager::GetMimeType(ArrayHelper::getValue($this, 'linkedFile.extension')); } protected function getOwnerId() { return 'admin'; } }