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:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user