Uploading multiple images from posted array |
[eluser]Wonder Woman[/eluser]
Hi, I want to loop through an array to upload images but I can't seem to access the array in my controller...how can i do it so I loop the script to upload...thanks in advance. view: Code: <input type="file" name="userfile[]" id="userfile" class="multi" /> controller: Code: $config['upload_path'] = $this->config->item('upload_path');
[eluser]ludo31[/eluser]
Hi ; try to adapt your code : view : http://pastie.org/3679320 controller : http://pastie.org/3679335 and view success http://pastie.org/3679342 don't forget to make lib->clear and $this->image_lib->initialize($config); |
Welcome Guest, Not a member yet? Register Sign In |