From 76c807a4e7cbf272e3895ba7fd2bab150b7e103a Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 10 Dec 2013 16:48:57 +1100 Subject: [PATCH] Fixes latest IFileSystem fix for image uploading --- src/Umbraco.Web/PropertyEditors/FileUploadPropertyEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/PropertyEditors/FileUploadPropertyEditor.cs b/src/Umbraco.Web/PropertyEditors/FileUploadPropertyEditor.cs index f03a9ed998..1d7ff870c0 100644 --- a/src/Umbraco.Web/PropertyEditors/FileUploadPropertyEditor.cs +++ b/src/Umbraco.Web/PropertyEditors/FileUploadPropertyEditor.cs @@ -80,8 +80,8 @@ namespace Umbraco.Web.PropertyEditors //there might be multiple, we can only process the first one! var split = ((string) p.Value).Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries); if (split.Any()) - { - var fullPath = mediaFileSystem.GetFullPath(split[0]); + { + var fullPath = mediaFileSystem.GetRelativePath(split[0]); var umbracoFile = new UmbracoMediaFile(fullPath); FillProperties(uploadFieldConfigNode, model, umbracoFile); }