1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

we dont need to SetPropertiesAsync on upload

This commit is contained in:
Kyle Spearrin 2018-11-09 09:47:10 -05:00
parent 7c36984609
commit a9195942fd

View File

@ -45,7 +45,6 @@ namespace Bit.Core.Services
blob.Metadata.Add("cipherId", cipherId.ToString()); blob.Metadata.Add("cipherId", cipherId.ToString());
blob.Metadata.Add("organizationId", organizationId.ToString()); blob.Metadata.Add("organizationId", organizationId.ToString());
blob.Properties.ContentDisposition = $"attachment; filename=\"{attachmentId}\""; blob.Properties.ContentDisposition = $"attachment; filename=\"{attachmentId}\"";
await blob.SetPropertiesAsync();
await blob.UploadFromStreamAsync(stream); await blob.UploadFromStreamAsync(stream);
} }