Jump to content

multiple file upload problem


krash11554

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/268386-multiple-file-upload-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.