Problem with multiple upload files

See all posts See thread Reply

Re: Problem with multiple upload files new!
by colin, 17 years, 8 months ago
First, you code should be:
$files = Array (); 
foreach ($_FILES [ââ?¬Å?my_fieldââ?¬Â] as $k => $l)  { 
  foreach ($l as $i => $v)  { 
    if (!array_key_exists ($i, $files)) 
      $files [$i] = Array (); 
      $files [$i] [$k] = $v; 
    }
  }
} 

Note the as in the foreach declarations.

Now, can you add this line before your foreach, and copy and paste here what it outputs?
die('FILES: '.print_r($_FILES, 1));
Reply