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:
parent
bb1860d861
commit
16a4f6d932
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user