Reply to Re: Problem with multiple upload files

Re: Problem with multiple upload files new!
by colin, 17 years, 4 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));

Your reply

Name *
Title *
Text *
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important