1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-23 22:01:28 +01:00

ContentDisposition=attachment for azure blobs

This commit is contained in:
Kyle Spearrin 2018-11-05 08:27:49 -05:00
parent bb1860d861
commit 16a4f6d932

View File

@ -34,6 +34,7 @@ namespace Bit.Core.Services
{
blob.Metadata.Add("organizationId", cipher.OrganizationId.Value.ToString());
}
blob.Properties.ContentDisposition = "attachment";
await blob.UploadFromStreamAsync(stream);
}
@ -43,6 +44,7 @@ namespace Bit.Core.Services
var blob = _attachmentsContainer.GetBlockBlobReference($"temp/{cipherId}/{organizationId}/{attachmentId}");
blob.Metadata.Add("cipherId", cipherId.ToString());
blob.Metadata.Add("organizationId", organizationId.ToString());
blob.Properties.ContentDisposition = "attachment";
await blob.UploadFromStreamAsync(stream);
}