webapi2
内网走nginx代理访问高德webapi2.0
需求:客户的电脑都只能访问内,服务器可以访问外网,客户电脑使用的项目中用到了高德webapi2.0。10.200.31.45:32100是我们的web服务器。 网上基本上都是对高德webapi1.4的配置方式,而web2.0有一些差别。 1.前端修改高德地图的js应用 如果是index.html引入 ......
asp.net webapi2.0文件上传
[Route("api/uploadFile")] public ReturnMessage PostFile(string saveDirName) { HttpRequest httpRequest = HttpContext.Current.Request; string rootPath = ......
webapi2.0文件下载
[System.Web.Http.Route("api/download")] public HttpResponseMessage GetFile(string filePath) { try { filePath = "\\" + filePath; var FilePath = System. ......