mirror of
https://github.com/bitwarden/server.git
synced 2025-02-01 23:31:41 +01:00
copytoasync
This commit is contained in:
parent
57a491d58b
commit
3f4a4bac2a
@ -26,7 +26,7 @@ namespace Bit.Core.Services
|
||||
using(var fs = File.Create($"{cipherDirPath}/{attachmentId}"))
|
||||
{
|
||||
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}"))
|
||||
{
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
stream.CopyTo(fs);
|
||||
await stream.CopyToAsync(fs);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user