Azure CLI编辑内容类型文件属性 [英] Azure CLI edit Content Type file property

查看:78
本文介绍了Azure CLI编辑内容类型文件属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Azure CLI更新位于我的Azure $ web blob容器中的文件的Content Type属性.我正在尝试执行此操作,因为设置有误,并且我的service-worker.js(对于我的PWA)需要具有"application/javascript"而不是"text/plain; charset = utf-8"才能进行注册.

I'm trying to update Content Type property of a file located in my Azure $web blob container using Azure CLI. I'm trying to do this because it's wrongly set and my service-worker.js (for my PWA) needs to have "application/javascript" instead of "text/plain; charset=utf-8" in order to be registered.

推荐答案

使用Azure cli时,应使用

When using Azure cli, you should use az storage blob update.

示例代码:

az storage blob update --container-name xxx --name xxx --account-key xxx --account-name xxx --content-type "application/javascript"

这篇关于Azure CLI编辑内容类型文件属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆