Load Balancing: Move temporary files and make them configurable to allow for media upload when load balancing the backoffice (#20717)

* make file upload location configurable

* Update src/Umbraco.Core/Configuration/Models/HostingSettings.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix default implementation

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Mole
2025-11-03 15:22:16 +01:00
committed by GitHub
parent 4ee1d7b13e
commit 313b60aca5
4 changed files with 17 additions and 2 deletions

View File

@@ -132,6 +132,10 @@ public class AspNetCoreHostingEnvironment : IHostingEnvironment
}
}
/// <inheritdoc />
public string TemporaryFileUploadPath => _hostingSettings.CurrentValue.TemporaryFileUploadLocation
?? Path.Combine(MapPathContentRoot(Core.Constants.SystemDirectories.TempData), "TemporaryFile");
/// <inheritdoc />
public string MapPathWebRoot(string path) => _webHostEnvironment.MapPathWebRoot(path);