diff --git a/src/Umbraco.Core/IO/PhysicalFileSystem.cs b/src/Umbraco.Core/IO/PhysicalFileSystem.cs index 3ea721dfdc..9b836cd2cf 100644 --- a/src/Umbraco.Core/IO/PhysicalFileSystem.cs +++ b/src/Umbraco.Core/IO/PhysicalFileSystem.cs @@ -83,6 +83,9 @@ namespace Umbraco.Core.IO EnsureDirectory(Path.GetDirectoryName(path)); + if (stream.CanSeek) + stream.Seek(0, 0); + using (var destination = (Stream)File.Create(GetFullPath(path))) stream.CopyTo(destination); }