cambio calcolo path x download files

This commit is contained in:
Samuele Locatelli
2021-09-30 18:54:42 +02:00
parent b802a9b914
commit 1f48aad618
+2 -1
View File
@@ -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);