![]() |
how to upload multiple file in a single form in codeigniter - 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: how to upload multiple file in a single form in codeigniter (/showthread.php?tid=57760) |
how to upload multiple file in a single form in codeigniter - El Forum - 04-09-2013 [eluser]Unknown[/eluser] can anybody help me out to upload multiple file from a single form. if possible please give some example. below is my code in model for upload function it works fine for single upload, but doesn't work for multiple uploads from a single form. Code: function upload(){ Thanks in Advance. how to upload multiple file in a single form in codeigniter - El Forum - 04-09-2013 [eluser]TheFuzzy0ne[/eluser] It's not possible to do that natively. People seem to be using this: https://github.com/stvnthomas/CodeIgniter-Multi-Upload how to upload multiple file in a single form in codeigniter - El Forum - 04-09-2013 [eluser]RaGe10940[/eluser] Had the same problem as you did solved it on this thread. Its long but the answers are here. Any questions just post on this thread and Fuzzy or myself will help you ![]() how to upload multiple file in a single form in codeigniter - El Forum - 04-10-2013 [eluser]Bigil Michael[/eluser] use for loop to upload more than one image at a time controller Code: function demo(){ model Code: function save_image($field,$filename=''){ how to upload multiple file in a single form in codeigniter - El Forum - 04-10-2013 [eluser]TheFuzzy0ne[/eluser] I don't think that's what the OP means. I suspect he has an upload field with the multiple="" attribute, meaning you can select any number of files from the file picker window, and they are uploaded in an array. how to upload multiple file in a single form in codeigniter - El Forum - 04-10-2013 [eluser]RaGe10940[/eluser] Bigil you need to have a look at this extended library : https://github.com/stvnthomas/CodeIgniter-Multi-Upload you are doing way to much work to upload multiple files. Literally with this library all you have to do is : Code: name="file[]" and your done. how to upload multiple file in a single form in codeigniter - El Forum - 04-10-2013 [eluser]Bigil Michael[/eluser] Good one. Thanks RaGe10940. how to upload multiple file in a single form in codeigniter - El Forum - 04-10-2013 [eluser]RaGe10940[/eluser] Heres a more in depth look at some of my code to further assist any one else looking into doing multiple uploads with a single form field. as Fuzzy said with one form field just use Code: multiple="" then do : Code: $this->load->library('upload'); // Load Library in my case I had to do this for a email system which Fuzzy helped me on so then do this : Code: foreach ($return as $file) { // loop over the upload data enjoy. how to upload multiple file in a single form in codeigniter - El Forum - 03-26-2014 [eluser]Tiến Thành[/eluser] [quote author="TheFuzzy0ne" date="1365534088"]It's not possible to do that natively. People seem to be using this: https://github.com/stvnthomas/CodeIgniter-Multi-Upload[/quote] Thank you so much how to upload multiple file in a single form in codeigniter - El Forum - 08-10-2014 [eluser]www.sblog.in[/eluser] Example http://www.webtuts.in/codeigniter-multiple-files-upload/ |