skip to Main Content

Codeigniter 4 Multiple Image Upload Issue – PHP

When I update the database, it uploads a single image. How do I upload multiple? $id = $this->request->getPost('id'); $model = new UrunModel(); $file = $this->request->getFile('resim'); $resim_eski = $model->find($id); if($file->isValid() && !$file->hasMoved()){ $eski_resim = $resim_eski['resim']; if(file_exists("dosyalar/uploads".$eski_resim)){ unlink("dosyalar/uploads".$eski_resim); } $imagename = $file->getRandomName();…

VIEW QUESTION
Back To Top
Search