CodeIgniter Forums
File uploading help needed - 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 uploading help needed (/showthread.php?tid=12169)



File uploading help needed - El Forum - 10-08-2008

[eluser]Computerzworld[/eluser]
Hello,
I am having a form in which I require six file input fields. I am using default CI uploader library in order to upload files. But the problem which I am facing is I am not able to use any other names for the file input fields rather than userfile. So, I am able to upload only one file from that form. Please help me. Thanks in advance.


File uploading help needed - El Forum - 10-08-2008

[eluser]Computerzworld[/eluser]
got the solution Smile what I did is that I have passed the file input name as argument in do_upload() function.
so if I am having three file input fields then what I will write is,
Code:
$this->upload->do_upload('userfile1')
$this->upload->do_upload('userfile2')
$this->upload->do_upload('userfile3')
.
That's it. It will work like a charm...
HTH...