Are you trying to get local file name on the client or build a file name to store uploaded file on server?
The first is hard to achieve - actually, impossible in most cases. It is browser dependent.
As to the second:
Server.MapPath()
method maps virtual or relative path to a path on server.
fileupload1.PostedFile.FileName
contains the name of the loaded file.
According to the code, you are trying to map file name on the client (in most cases without path) to the path on server. And documentation on
MapPath method[
^] says that when relative path doesn't start with a slash, you'll receive a path "relative to the directory of the .asp file being processed" - i.e. your web form directory.
To resolve the problem you can store absolute path to your upload folder in custom settings or get web application root path and add fixed relative path. Besides, avoid using FilePath directly - see
this link[
^], for example