From 99be6385250eec018a30326e9b782255db47fd03 Mon Sep 17 00:00:00 2001 From: Shaun Walker Date: Sat, 6 Aug 2022 16:27:24 -0400 Subject: [PATCH] Fix #2336 - error.png path incorrect --- Oqtane.Server/Controllers/FileController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Oqtane.Server/Controllers/FileController.cs b/Oqtane.Server/Controllers/FileController.cs index 27666b66..323fc195 100644 --- a/Oqtane.Server/Controllers/FileController.cs +++ b/Oqtane.Server/Controllers/FileController.cs @@ -503,7 +503,7 @@ namespace Oqtane.Controllers HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden; } - string errorPath = Path.Combine(GetFolderPath("images"), "error.png"); + string errorPath = Path.Combine(GetFolderPath("wwwroot\\images"), "error.png"); return System.IO.File.Exists(errorPath) ? PhysicalFile(errorPath, MimeUtilities.GetMimeType(errorPath)) : null; } @@ -568,7 +568,7 @@ namespace Oqtane.Controllers HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden; } - string errorPath = Path.Combine(GetFolderPath("images"), "error.png"); + string errorPath = Path.Combine(GetFolderPath("wwwroot\\images"), "error.png"); return System.IO.File.Exists(errorPath) ? PhysicalFile(errorPath, MimeUtilities.GetMimeType(errorPath)) : null; }