function postMultipart() { $kursus = new VIH_Model_LangtKursus((int) $this->name()); if ($this->getForm()->validate()) { $file = new Ilib_FileHandler(); if ($file->upload('userfile')) { $kursus->addPicture($file->get('id')); return new k_SeeOther($this->url()); } } return $this->render(); }