Added code to auto seek stream to begining when saving via IFileSystem just in case
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user