diff --git a/app/Model/DreamjobPageImage.php b/app/Model/DreamjobPageImage.php index f6d27b0..a52a385 100644 --- a/app/Model/DreamjobPageImage.php +++ b/app/Model/DreamjobPageImage.php @@ -130,7 +130,7 @@ public function saveAndUpload($data){ $dataSource->begin(); $result = $this->saveAssociated($data); if($result){ - $filename = $data["DreamjobPageInh"]['user_id'] . "_-_p" . $this->id .".". pathinfo($data[$this->alias]['image']['name'], PATHINFO_EXTENSION); + $filename = $data["DreamjobPageInh"]['user_id'] . "_-page-_" . $this->id .".". pathinfo($data[$this->alias]['image']['name'], PATHINFO_EXTENSION); $filename = WWW_ROOT . $this->uploadDir . DS . $filename; if (!move_uploaded_file($data[$this->alias]['image']['tmp_name'], $filename)) {