Merge branch 'normalize-stream-seek' of https://github.com/JimBobSquarePants/Umbraco-CMS into JimBobSquarePants-normalize-stream-seek

# Conflicts:
#	src/Umbraco.Core/Media/ImageHelper.cs
This commit is contained in:
Shannon
2017-04-18 13:11:44 +10:00
parent 68fb951283
commit 2dac1b3cf5
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ namespace Umbraco.Core.IO
Directory.CreateDirectory(Path.GetDirectoryName(fullPath)); // ensure it exists
if (stream.CanSeek)
stream.Seek(0, 0);
stream.Seek(0, SeekOrigin.Begin);
using (var destination = (Stream)File.Create(fullPath))
stream.CopyTo(destination);