asp.net中FileUpload得到上传文件的完整路径
Response.Write("完整路径:" + Server.MapPath(FileUpload1.PostedFile.FileName));
结果:
完整路径:c:\users\rickon\documents\visual studio 2013\Projects\RestAPI4Pan.Baidu.Com\RestAPI4Pan.Baidu.Com\eula.1033.txt
Response.Write("完整路径:" + Server.MapPath(FileUpload1.PostedFile.FileName));
结果:
完整路径:c:\users\rickon\documents\visual studio 2013\Projects\RestAPI4Pan.Baidu.Com\RestAPI4Pan.Baidu.Com\eula.1033.txt