Reply to multiple upload resize images

multiple upload resize images new!
by jay, 17 years, 11 months ago
Looking at upload.php file Im tying to set multiple upload images but it doesn't work.. I get this error: Invalid argument supplied for foreach()
include('class.upload.php');
$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;
    }
}

foreach ($files as $file) {
    $handle = new Upload($file);
    if ($handle->uploaded) {
       // [...]
    }
}
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