Uploading multiple pics

I have a form to allow users to upload pics. I found a really nice way to preview them first,


If I look down in the console, an array of images seem to be created.
But then if I submit the form, I get
., I use

echo "FILES[]<br>";
foreach($_FILES as $file)
{
   echo $file['name'] . "<br>";
   echo $file['type'] . "<br>";
   echo $file['size'] . "<br>";
   echo $file['error'] . "<br>";
}
```
to see if I am getting all the images.
Why am, I only getting 1?

Does this help? : http://php.net/manual/en/features.file-upload.multiple.php

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.