U4-9919 Updated media files are deleted

This commit is contained in:
Claus
2017-05-18 11:30:11 +02:00
parent 120cb964a5
commit 79844154fb
5 changed files with 14 additions and 16 deletions

View File

@@ -159,7 +159,7 @@ namespace Umbraco.Core.IO
// ReSharper disable once AssignNullToNotNullAttribute
var filepath = UmbracoConfig.For.UmbracoSettings().Content.UploadAllowDirectories
? Path.Combine(folder, filename)
? Path.Combine(folder, filename).Replace('\\', '/')
: folder + "-" + filename;
return filepath;