The reason for this is that in the form you created, the method is get, whereas the upload code uses the post method. When creating a form in the design view the form gets generated as a post while if you add it in the code view, you have a choice between get and post.