$uploadfile=$dir."/".basename($_FILES['userfile']['name']); if (move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadfile)) { echo "Uploaded: ". "Name: ".$_FILES['userfile']['name']."
\n". "Type: ".$_FILES['userfile']['type']."
\n". "Size: ".$_FILES['userfile']['size']." bytes
\n"; } else print "Error uploading file: ".$_FILES['userfile']['name'].""; } ?>

Upload New File