Fixes U4-1368 so the FileHandlerData doesn't handle setting properties for Document and Media.

Properties using the UploadField will have its value as well as related values updated in a BeforeSave event.
This commit is contained in:
Morten Christensen
2013-01-02 14:28:15 -01:00
parent 0312caa166
commit 169db0c15f
9 changed files with 163 additions and 64 deletions

View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Umbraco.Core.CodeAnnotations;
using Umbraco.Core.CodeAnnotations;
namespace Umbraco.Core.IO
{
@@ -10,7 +6,7 @@ namespace Umbraco.Core.IO
public static class FileSystemExtensions
{
[UmbracoExperimentalFeature("", "Will be declared public after 4.10")]
internal static long GetSize(this IFileSystem fs, string path)
internal static long GetSize(this IFileSystem fs, string path)
{
var s = fs.OpenFile(path);
var size = s.Length;
@@ -20,7 +16,7 @@ namespace Umbraco.Core.IO
}
[UmbracoExperimentalFeature("", "Will be declared public after 4.10")]
internal static void CopyFile(this IFileSystem fs, string path, string newPath)
internal static void CopyFile(this IFileSystem fs, string path, string newPath)
{
fs.AddFile(newPath, fs.OpenFile(path));
}

View File

@@ -6,7 +6,7 @@ using Umbraco.Core.CodeAnnotations;
namespace Umbraco.Core.IO
{
[UmbracoExperimentalFeature("http://issues.umbraco.org/issue/U4-1156", "Will be declared public after 4.10")]
internal interface IFileSystem
internal interface IFileSystem
{
IEnumerable<string> GetDirectories(string path);