Re: HTTP/Upload.php can't handle multiple files!!

From: Date: Wed, 08 Sep 2004 09:12:23 +0000
Subject: Re: HTTP/Upload.php can't handle multiple files!!
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14449@lists.php.net to get a copy of this message
"Louie Miranda" <lmiranda@gmail.com> wrote in message news:5016fc504090723482235bfaf@mail.gmail.com... > I got this array.. > > rray > ( > [userfile] => Array > ( > [name] => Array > ( > [0] => xml_Appendix_B.pdf > [1] => xml_Appendix_C.pdf > [2] => xml_Chapter_7.pdf > ) > > i mean i got the three files.. but nothing is being uploaded? > > i did this.. > > Image 1: <input type="file" name="userfile[]"><br> > Image 2: <input type="file" name="userfile[]"><br> > Image 3: <input type="file" name="userfile[]"><br> > > > and replaced.. > > $files = $upload->getFiles('userfile[]'); // returns an array of file > objects or error This should definitely be: $files = $upload->getFiles('userfile'); // without [] Do a print_r($files) to see if/which objects are in the returned array. Regards, Torsten Roehr

« previous php.pear.general (#14449) next »