[HttpGet] public IActionResult GetFile(string filepath) { if (string.IsNullOrEmpty(filepath)) filepath = "D:\\ABC.log"; var provider = new FileExtensionContentTypeProvider(); FileInfo fileInfo = new FileInfo(filepath); var ext =
NetCore API 返回文件流
最新推荐文章于 2024-04-28 14:16:20 发布