krash11554 Posted September 14, 2012 Share Posted September 14, 2012 When i choose three files to upload everything works. the code displays the name but whenever i select more then three files it dosent display the names. if(isset($_FILES['addcar_fileupload']) && empty($_POST) === false){ $image_name = $_FILES['addcar_fileupload']['name']; $image_size = $_FILES['addcar_fileupload']['size']; $image_temp = $_FILES['addcar_fileupload']['tmp_name']; $allowed_ext = array('jpg','jpeg','png','gif'); if (isset($image_name)){ foreach($image_name as $image_names){ $img_ext = strtolower(end(explode('.', $image_names))); $count = count($image_name); echo $image_names; } } } Any help is appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/268386-multiple-file-upload-problem/ Share on other sites More sharing options...
requinix Posted September 14, 2012 Share Posted September 14, 2012 Have you looked for errors? print_r($_FILES['addcar_fileupload']['error']); Quote Link to comment https://forums.phpfreaks.com/topic/268386-multiple-file-upload-problem/#findComment-1377986 Share on other sites More sharing options...
krash11554 Posted September 14, 2012 Author Share Posted September 14, 2012 it comes back as 1 Quote Link to comment https://forums.phpfreaks.com/topic/268386-multiple-file-upload-problem/#findComment-1377988 Share on other sites More sharing options...
requinix Posted September 14, 2012 Share Posted September 14, 2012 And what does that number mean? Quote Link to comment https://forums.phpfreaks.com/topic/268386-multiple-file-upload-problem/#findComment-1378029 Share on other sites More sharing options...
krash11554 Posted September 15, 2012 Author Share Posted September 15, 2012 Thanks I now no what to do Quote Link to comment https://forums.phpfreaks.com/topic/268386-multiple-file-upload-problem/#findComment-1378053 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.