<html> <head> <title>FileUpload Object</title> </head> <body> <form method="POST" action="" enctype=""> File to be uploaded: <input type="file" size="40" name="fileToGo" /> <input type="button" value="View Value" onclick="alert(this.form.fileToGo.value)" /></p> </form> </body> </html>