Battling to upload multiple files - 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: Battling to upload multiple files (/showthread.php?tid=60132) |
Battling to upload multiple files - El Forum - 01-21-2014 [eluser]giovannidc[/eluser] Hi, I'm trying to upload multiple images but my code only seems to work on my localhost. When I try upload on a live server, only one file is uploaded. I googled and alot of the responses said I need to use Code: $this->upload->initialize($config); Code: $this->upload->do_upload('image'.$i) Here is an extract of my code, please let me know what I am missing: Code: $upload_errors = array(); Battling to upload multiple files - El Forum - 01-21-2014 [eluser]giovannidc[/eluser] Problem solved. I accidentally had a redirect in my loop that redirected to to the success page. |