mirror of
https://github.com/bitwarden/server
synced 2025-12-11 13:53:40 +00:00
copytoasync
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Bit.Core.Services
|
|||||||
using(var fs = File.Create($"{cipherDirPath}/{attachmentId}"))
|
using(var fs = File.Create($"{cipherDirPath}/{attachmentId}"))
|
||||||
{
|
{
|
||||||
stream.Seek(0, SeekOrigin.Begin);
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
stream.CopyTo(fs);
|
await stream.CopyToAsync(fs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ namespace Bit.Core.Services
|
|||||||
using(var fs = File.Create($"{tempCipherOrgDirPath}/{attachmentId}"))
|
using(var fs = File.Create($"{tempCipherOrgDirPath}/{attachmentId}"))
|
||||||
{
|
{
|
||||||
stream.Seek(0, SeekOrigin.Begin);
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
stream.CopyTo(fs);
|
await stream.CopyToAsync(fs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user