File input array uploads - 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: File input array uploads (/showthread.php?tid=29932) |
File input array uploads - El Forum - 04-26-2010 [eluser]nelson.wells[/eluser] I can't seem to figure out how to upload multiple files with a file input array using the upload class. Intuitively, I think it should be simple but I haven't been able to get it to work. Here is the upload form. Code: <?php echo form_open_multipart("quote/do_upload"); ?> And here is the controller function to which the view is posted. Code: function do_upload() It seems pretty straight-forward, but the display_errors function is telling me that I did not upload a file for every input box. I've tried different variations of the field supplied to do_upload, but I can't imagine why it would be something other than image[0] (for the first input box, for example). I've managed to use the upload class successfully with single image uploads and multiple file uploads with different names (i.e. not an array of file inputs), so I'm fairly sure the probelm is in that. File input array uploads - El Forum - 04-26-2010 [eluser]Krzemo[/eluser] google 'uploadify' or 'swf upload' File input array uploads - El Forum - 04-26-2010 [eluser]nelson.wells[/eluser] I'm aware of those tools and if they're my only options, but is there a reason I can't do this with plain forms? |