U4-6809 u7.2.6 Updating media items with large file cause out of memory exception

This commit is contained in:
Claus
2016-10-05 11:06:51 +02:00
parent 13e5409ab2
commit 2cc541e084

View File

@@ -41,11 +41,7 @@ namespace Umbraco.Core.IO
{
using (var file = fs.OpenFile(path))
{
using (var sr = new StreamReader(file))
{
var str = sr.ReadToEnd();
return str.Length;
}
return file.Length;
}
}