Image upload and display not work- Cakephp
Image upload and display not work- Cakephp I'm trying to add upload image for every connected user But I can't upload to databse Error message : Cannot convert value of type array to string Edit : When I try update The User profile from (profile function) I get message : Notice (8): Uninitialized string offset: 0 [COREsrcViewHelperUrlHelper.php, line 174] But when I update the profile From the Users (edit function) works fine UsersController.php public function edit($id = null) { $this->viewBuilder()->setLayout('user'); $user = $this->Users->get($id, [ 'contain' => ]); if ($this->request->is(['patch', 'post', 'put'])) { if ($this->request->data['password'] == '') { unset($this->request->data['password']); } $user = $this->Users->patchEntity($user, $this->request->data); if ($this->Users->save($u...
