Reply to Re: Problem with multiple upload files

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

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
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