Problem uploading multiple Images - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem uploading multiple Images (/showthread.php?tid=29754) |
Problem uploading multiple Images - El Forum - 04-20-2010 [eluser]Dirk Basiscode[/eluser] Hello there, i'm just new to CI and have a question regarding multiple file uploads. I have a form where the user can uplaod 5 pictures. In my controler i save all the other inputfields in a db and maka one call to a methode to save the images for every image the user submitted. Code: ... in the Methode uploadFile i upload the Image :-) and save the imagedata in a class-variable Code: $this->aFileData Here's the methode: Code: private function uploadFile($sFieldname, $iId) The Problem ist that the first filename is the given filename but for the following images i have just the fileextension after the first imagename. e.g.: image1: name1.jpg image2: name1.jpg.jpg Can anyone help? Thanks a lot Dirk Problem uploading multiple Images - El Forum - 04-20-2010 [eluser]danmontgomery[/eluser] search is your friend Problem uploading multiple Images - El Forum - 04-20-2010 [eluser]Dirk Basiscode[/eluser] thanks man. This works. Next time I'll search with more enthusiasm :red: |