【发布时间】:2014-10-03 08:33:29
【问题描述】:
基于 stimms 的回答: Azure Storage API ContentDisposition
以及在此处找到的信息: Friendly filename when public download Azure blob
我已经能够在上传新文件时设置内容处置。但我也希望能够设置现有文件的内容配置。
blob.Properties.ContentDisposition = string.Format("attachment;filename=\"{0}\"", friendlyName);
在上传文件之前设置效果很好,但如果我在现有的 blob 上尝试它就没有效果。
改变现有 blob 的内容配置是完全不可能的,还是我做错了什么?
【问题讨论】:
标签: azure azure-storage azure-blob-storage