cambio calcolo path x download files
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user