Using $_FILES variable into the same function for uploading images and files
I did override something. I did not validation and only build structured to validation and upload function. You can validate file as you needed. if ($_FILES) { // Get the upload attachment files $images = $_FILES[‘moreimages’]; $errors=””; foreach ($images[‘name’] as $key => $value) { if ($images[‘name’][$key]) { $image = array( ‘name’ => $images[‘name’][$key], ‘type’ => … Read more