Fixes FileUploadPropertyEditor and IFileSystem usage

This commit is contained in:
Shannon
2013-12-11 09:05:38 +11:00
parent 791c3f5208
commit 85bf47df82

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.GetRelativePath(split[0]);
{
var fullPath = mediaFileSystem.GetFullPath(mediaFileSystem.GetRelativePath(split[0]));
var umbracoFile = new UmbracoMediaFile(fullPath);
FillProperties(uploadFieldConfigNode, model, umbracoFile);
}