PHP Classes

Uploading Multiple files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in

      class.upload.php  >  All threads  >  Uploading Multiple files  >  (Un) Subscribe thread alerts  
Subject:Uploading Multiple files
Summary:I am using this to upload MULTIPLE files - but not working
Author:Eric Hall
Date:2009-04-23 16:10:46

  1. Uploading Multiple files   Reply   Report abuse  
Picture of Eric Hall Eric Hall - 2009-04-23 16:10:46
my HTML form has

<input type="file" name="userfile[]" class="multi" maxlength="20" accept="gif|jpg|png"/>
(it's using jquery - for the accept deal)

So, when I go to upload, your script isn't working.

Was think I had to do this:

for($i=0 ; $i < $k ; $i++) {
$foo = new Upload($_FILES['userfile'][$i]);

But, I'm not getting anything.

ANy ideas?