multi image upload wrong quantity on file-upload
i like to upload some images to a directory with the help of arrays. therefore i have this code: $allowedExtensions = array('jpg', 'jpeg', 'png', 'bmp', 'tiff', 'gif'); $maxSize = 2097152; $Dir = "a/b/c/d"; $storageDir = "a/b/c/d/tmp_images"; //Arrays $errors2 = $output = array(); if(!empty($_FILES['image'])){ // Validation loop (I prefer for loops for this specific task) for ($i = 0; isset($_FILES['image']['name'][$i]); $i++) { $fileName = $_FILES['image']['name'][$i]; $fileSize = $_FILES['image']['size'][$i]; /*$fileErr = $_FILES['image']['error'][$i];*/ $fileExt = strtolower(pathinfo(