$this->upload->data() problem - 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: $this->upload->data() problem (/showthread.php?tid=9922) |
$this->upload->data() problem - El Forum - 07-13-2008 [eluser]Mitja[/eluser] I want to use $pluspayment_uploads['orig_name'][$i] but i have problem becouse CI function $this->upload->data() does not recognize multiple photos. I get error like Message: Uninitialized string offset: 0 and 1 Filename: controllers/admin.php this line: 'title_photo' => $pluspayment_uploads['orig_name'][$i] Code: if($_FILES['pluspayment_title_photo']['name'][$i] != '') any idea how to fix that? $this->upload->data() problem - El Forum - 07-13-2008 [eluser]Mitja[/eluser] i also get error Quote:A PHP Error was encountered becouse i have the name of array <tr><td>Fotka: <input type="file" name="pluspayment_title_photo[]" /></tr> and $this->upload->do_upload('pluspayment_title_photo') can not except array. How can i upload multiple file in array? PLEASE $this->upload->data() problem - El Forum - 07-13-2008 [eluser]Mitja[/eluser] ANYONE PLEASE $this->upload->data() problem - El Forum - 07-13-2008 [eluser]Randy Casburn[/eluser] Mitja -- I type "multiple file upload" in the forum search bar at the top right of this page and it returned pages and pages of helpful results. Here is a post that you may find most useful: http://ellislab.com/forums/viewthread/80610/ If not, please try that search yourself. You may find that searching the forums really does yield some great answers. Randy |