Ejemplo n.º 1
0
 public function submit($data)
 {
     $this->submitted = true;
     $this->setNewFileName();
     // Upload File
     try {
         $this->uploader->upload();
     } catch (\Exception $e) {
         $errors = $this->uploader->getErrors();
         return false;
     }
     $data['file_name'] = $this->uploader->getNameWithExtension();
     return parent::submit($data);
 }