PHP

UPLOAD MULTIPLE FILES IN PHP

<form action="up.php" method="post"    enctype="multipart/form-data">   <input type="file" name="up[]"    multiple required/>   <input type="submit" value="Go"/> </form>

HTML FILE UPLOAD FORM

01

$total = count($_FILES["upfile"]["name"]); for ($i=0; $i<$total; $i++) {   $src = $_FILES["up"]["tmp_name"][$i];   $dest = $_FILES["up"]["name"][$i];   move_uploaded_file($src, $dest); }

PHP UPLOAD HANDLER

02