<form action="upload2.php" method="post" enctype="multipart/form-data" > <input type="file" name="thefile"> <input type="submit"> </form>