Welcome Guest, Not a member yet? Register   Sign In
File uploading help needed
#1

[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.
#2

[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...




Theme © iAndrew 2016 - Forum software by © MyBB