CodeIgniter Forums
Multiple File upload Problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Multiple File upload Problem (/thread-15931.html)



Multiple File upload Problem - El Forum - 02-19-2009

[eluser]Unknown[/eluser]
Hello Friends,

I want to upload multiple file from one upload file control. I do it as below:

<input type="file" name="ucfd_file[]" id="ucfd_file[]" class="textbox" tabindex="18" /> <input class="textbox" type="button" name="button" value="Add" tabindex="19" >
<input type="hidden" name="link_total1" id="link_total1" value="0">

in addFileElement function I pass this name in hidden field which is array of added file name and at that time the file upload control name is clear(blank). so, i m able to added another file from there.

Now i need to pass file name in argument of $this->upload->do_upload('ucfd_file[]'). But at time of upload file it is blank. If i pass array of hidden field then it also can't working.

Please suggest me what i can do to solve this problem? Any help is really appreciate.
Thanks in advance...