diff --git a/src/Core/Services/Implementations/LocalAttachmentStorageService.cs b/src/Core/Services/Implementations/LocalAttachmentStorageService.cs index ad6c641aac..79abf5de6a 100644 --- a/src/Core/Services/Implementations/LocalAttachmentStorageService.cs +++ b/src/Core/Services/Implementations/LocalAttachmentStorageService.cs @@ -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); } }