From b3f4ca13a40353fa7751978c7c7b480f58e2a7c6 Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 26 Jun 2018 11:58:44 +1000 Subject: [PATCH] Changes to 2 folders instead of hyphen --- .../IO/MediaPathSchemes/TwoGuidsMediaPathScheme.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Core/IO/MediaPathSchemes/TwoGuidsMediaPathScheme.cs b/src/Umbraco.Core/IO/MediaPathSchemes/TwoGuidsMediaPathScheme.cs index bf2a8cde28..4a6fdfcdbe 100644 --- a/src/Umbraco.Core/IO/MediaPathSchemes/TwoGuidsMediaPathScheme.cs +++ b/src/Umbraco.Core/IO/MediaPathSchemes/TwoGuidsMediaPathScheme.cs @@ -7,7 +7,7 @@ namespace Umbraco.Core.IO.MediaPathSchemes /// Implements a two-guids media path scheme. /// /// - /// Path is "{itemGuid}-{propertyGuid}/{filename}". + /// Path is "{itemGuid}/{propertyGuid}/{filename}". /// public class TwoGuidsMediaPathScheme : IMediaPathScheme { @@ -18,8 +18,7 @@ namespace Umbraco.Core.IO.MediaPathSchemes /// public string GetFilePath(Guid itemGuid, Guid propertyGuid, string filename, string previous = null) { - var directory = itemGuid.ToString("N") + "-" + propertyGuid.ToString("N"); - return Path.Combine(directory, filename).Replace('\\', '/'); + return Path.Combine(itemGuid.ToString("N"), propertyGuid.ToString("N"), filename).Replace('\\', '/'); } ///