How to show file upload names and size? |
<?php
$files = array(); $count_files = count($_FILES["userfile"]["name"]); if($count_files!=0){ for($i=0;$i < $count_files;$i++){ $files[$i]["name"] = $_FILES["userfile"]["name"][$i]; $files[$i]["type"] = $_FILES["userfile"]["type"][$i]; $files[$i]["tmp_name"] = $_FILES["userfile"]["tmp_name"][$i]; $files[$i]["error"] = $_FILES["userfile"]["error"][$i]; $files[$i]["size"] = $_FILES["userfile"]["size"][$i]; } } print_r($files); ?> Use this code in form submit page for get all files in single array |
Messages In This Thread |
How to show file upload names and size? - by Aneri - 06-15-2016, 05:26 AM
RE: How to show file upload names and size? - by abhijeetgk - 06-15-2016, 05:33 AM
RE: How to show file upload names and size? - by Aneri - 06-15-2016, 05:58 AM
RE: How to show file upload names and size? - by Aneri - 06-15-2016, 06:29 AM
RE: How to show file upload names and size? - by mp.inviable - 06-15-2016, 06:35 AM
RE: How to show file upload names and size? - by Aneri - 06-15-2016, 07:59 AM
RE: How to show file upload names and size? - by mp.inviable - 06-20-2016, 07:03 AM
RE: How to show file upload names and size? - by InsiteFX - 06-15-2016, 06:18 PM
|