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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user