环境:net framework 4.5.2
/// <summary>/// 别名下载/// </summary>/// <param name="relativePath">相对路径:File/20220402/b21d7288-34d7-4629-97f3-ca81ead2d909.xlsx(当前文件一定要存在)</param>/// <param name="rename">别名:xxxx.xlsx</param>/// http://localhost:1197/File/Down?relativePath=File/20220402/b21d7288-34d7-4629-97f3-ca81ead2d909.xlsx&rename=111.xlsx/// <returns></returns>[HttpGet]public dynamic Down(string relativePath, string rename) {FileTool ft = new FileTool();return ft.Down(this, relativePath, rename);//return File(new FileInfo(AppDomain.CurrentDomain.BaseDirectory + relativePath).OpenRead(), "application/octet-stream;charset=gbk", rename);}
