If the file is located inside some non-accessible from the client folder of your application such as App_Data you could use the MapPath method to construct the full physical path to this file using a relative path:string file = HostingEnvironment.MapPath("~/App_Data/foo.xlsx"); 这篇关于如何从服务器下载文件到客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 07:29