Backport pull request #13411 from jellyfin/release-10.10.z

Use WriteThrough for ImageSaver

Original-merge: 6329de4fc3

Merged-by: joshuaboniface <joshua@boniface.me>

Backported-by: Bond_009 <bond.009@outlook.com>
pull/13488/head
gnattu 2 months ago committed by Bond_009
parent dc28056450
commit 24be951b75

@ -291,6 +291,7 @@ namespace MediaBrowser.Providers.Manager
var fileStreamOptions = AsyncFile.WriteOptions;
fileStreamOptions.Mode = FileMode.Create;
fileStreamOptions.Options = FileOptions.WriteThrough;
if (source.CanSeek)
{
fileStreamOptions.PreallocationSize = source.Length;

Loading…
Cancel
Save