In this article I will make clear one misunderstanding that I see in day to day developers and mostly new comers.
 
The Misunderstanding
The misunderstanding is that developers tend to access the path of the file on the user’s machine that he has selected for upload in browsers like Internet Explorer IE, FireFox, Chrome, Safari and Opera. It is displayed as fakepath.
 
The Reason
Thus I would like to explain that initially in early days it was sent to the server but later on due to advancement in the Internet field, that path was being used to hack the computer.
Hence now the location of the folder of the file on the user’s machine is not sent to the server.
 
You don’t need that path
Now there’s no use of the location of the file i.e. its complete path as new developers forget the fact that what they are developing is a client server application and it will be hosted on server. Since during development both the client and the server are same machine you tend to use the same path for saving. But that’s incorrect.
You need to save the file on the server’s folder and an easiest way would be to create a Folder called Uploads in your Website or Web Application and then saving the file there using the following code
C#
protected void btnUpload_Click(object sender, EventArgs e)
{
    string fileName = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName);
    FileUpload1.PostedFile.SaveAs(Server.MapPath("~/Uploads/" + fileName));
}
 
VB.Net
Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As EventArgs)
    Dim fileName As String = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName)
    FileUpload1.PostedFile.SaveAs(Server.MapPath(("~/Uploads/" + fileName)))
End Sub
 
That’s if from me. If you have any doubts you can ask me on www.aspforums.net