Fixes latest IFileSystem fix for image uploading

This commit is contained in:
Shannon
2013-12-10 16:48:57 +11:00
parent 985db6d2e3
commit 76c807a4e7

View File

@@ -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);
}