private function _validateVideo() { if (!isset($this->request->files['video']['tmp_name']) || !isset($this->request->files['video']['name'])) { $this->_error['video']['common'] = tt('Uploaded video file is wrong!'); $this->security_log->write('Uploaded video file is wrong'); } else { if (!ValidatorUpload::videoValid(array('name' => $this->request->files['video']['name'][$this->request->get['row']], 'tmp_name' => $this->request->files['video']['tmp_name'][$this->request->get['row']]), QUOTA_AUDIO_MAX_FILE_SIZE)) { $this->_error['video']['common'] = tt('Video is not valid!'); $this->security_log->write('Uploaded video file is not valid'); } } return !$this->_error; }