Merge conflict fixes

This commit is contained in:
Niels Hartvig
2017-01-10 14:49:19 +01:00
parent 5a2687d520
commit 14e402878a
4 changed files with 62 additions and 4 deletions

View File

@@ -97,6 +97,13 @@ namespace Umbraco.Web.Editors
var dictionary = new Dictionary<string, object>();
//add the files if any
var files = contentItem.UploadedFiles.Where(x => x.PropertyAlias == property.Alias).ToArray();
if (files.Length > 0)
{
dictionary.Add("files", files);
// add extra things needed to figure out where to put the files
dictionary.Add("cuid", contentItem.PersistedContent.Key);
dictionary.Add("puid", dboProperty.PropertyType.Key);
}
foreach (var file in files)
file.FileName = file.FileName.ToSafeFileName();