Content disposition is not defined

Avihay Shem Tov 1 Reputation point
2020-07-08T16:39:37.647+00:00

When using generate_blob_sas function this way on azurite 3.8.0:

generate_blob_sas(account_name,
                               container_name,
                               blob_name,
                               account_key=account_key,
                               permission=BlobSasPermissions(read=True),
                               expiry=datetime.utcnow() + const_expire_in_seconds 
                               content_disposition=f'attachment; filename={file_name}')

I don't get any content-disposition value in the response header

I do something wrong?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,448 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. deherman-MSFT 33,701 Reputation points Microsoft Employee
    2020-07-08T19:30:38.02+00:00

    <a href="/answers/users/3035714/avihayshemtov-5412.html" rel="user" data-nodeid="3035714">@AvihayShemTov-5412</a> This does not appear in the response header currently for Azurite. See a similar thread here. I see that you have already filed an issue on GitHub. I will monitor this issue and make sure that it is followed up on. Thanks for reporting this!


    Please do not forget to "Accept the answer" and Upvote on the post that helps you, this can be beneficial to other community members.


  2. Sumarigo-MSFT 43,806 Reputation points Microsoft Employee
    2020-07-15T07:08:21.22+00:00

    <a href="/answers/users/3035714/avihayshemtov-5412.html" rel="user" data-nodeid="3035714">@AvihayShemTov-5412</a> As @XiaoningLiu informed that GitHub Azurite doesn't support content-xxx override in SAS yet. Mark this as feature request will triage in following releases. In the same time, contribution is pretty welcome!

    If you wish you may leave your feedback here All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please do not forget to "Accept the answer" and Upvote on the post that helps you, this can be beneficial to other community members.