webapi中取文件的物理路径(server.mappath)
Webapi中是用不了server.mappath方法
取得文件绝对路径:
System.Web.Hosting.HostingEnvironment.MapPath
https://blog.csdn.net/niunan/article/details/72782861
https://stackoverflow.com/questions/16557122/microsoft-web-api-how-do-you-do-a-server-mappath
网友评论