コード例 #1
0
ファイル: SaveFile.php プロジェクト: solleer/framework
 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);
 }