Improved upload progress tracking. Fixed path on frontend export

This commit is contained in:
2025-03-17 10:53:45 +01:00
parent 75f037da02
commit 420ff46ceb
7 changed files with 120 additions and 24 deletions

View File

@@ -91,7 +91,7 @@ public class FrontendService
if (wasmMainFile is NotFoundFileInfo || string.IsNullOrEmpty(wasmMainFile.PhysicalPath))
throw new HttpApiException("Unable to find wasm location", 500);
var wasmPath = Path.GetDirectoryName(wasmMainFile.PhysicalPath)!;
var wasmPath = Path.GetDirectoryName(wasmMainFile.PhysicalPath)! + "/";
// Load and check the blazor framework files
var blazorFile = WebHostEnvironment.WebRootFileProvider.GetFileInfo("_framework/blazor.webassembly.js");
@@ -99,7 +99,7 @@ public class FrontendService
if (blazorFile is NotFoundFileInfo || string.IsNullOrEmpty(blazorFile.PhysicalPath))
throw new HttpApiException("Unable to find blazor location", 500);
var blazorPath = Path.GetDirectoryName(blazorFile.PhysicalPath)!;
var blazorPath = Path.GetDirectoryName(blazorFile.PhysicalPath)! + "/";
// Create zip
var memoryStream = new MemoryStream();
@@ -124,7 +124,7 @@ public class FrontendService
// Add plugin wwwroot files
foreach (var pluginPath in PluginService.LoadedPlugins.Values)
{
var wwwRootPluginPath = Path.Combine(pluginPath, "wwwroot");
var wwwRootPluginPath = Path.Combine(pluginPath, "wwwroot/");
if (!Directory.Exists(wwwRootPluginPath))
continue;