From 1f48aad6184b791080ffa76a611f752a7fa55fd9 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 30 Sep 2021 18:54:42 +0200 Subject: [PATCH] cambio calcolo path x download files --- MP.Stats/Pages/Download.cshtml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MP.Stats/Pages/Download.cshtml.cs b/MP.Stats/Pages/Download.cshtml.cs index ae4167a9..2556693b 100644 --- a/MP.Stats/Pages/Download.cshtml.cs +++ b/MP.Stats/Pages/Download.cshtml.cs @@ -40,7 +40,8 @@ namespace MP.Stats.Pages { fileName = Request.Query["fileName"]; } - var filePath = Path.Combine(_env.WebRootPath, "..\\temp\\", fileName); + var filePath = Path.Combine(_env.ContentRootPath, fileName); + //var filePath = Path.Combine(_env.WebRootPath, "..\\temp\\", fileName); byte[] fileBytes = System.IO.File.ReadAllBytes(filePath);