微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

NodeJS'@ azure / storage-blob':上传文件时如何设置Blob服务属性

如何解决NodeJS'@ azure / storage-blob':上传文件时如何设置Blob服务属性

this document开始,没有设置Blob服务属性的示例。

下面是我的示例代码

let containerClient = blobServiceClient.getContainerClient(CONTAINERNAME),blockBlobClient = containerClient.getBlockBlobClient(BLOBNAME);

await blockBlobClient.uploadFile(FILEPATH);

请告知我如何在blockBlob的contentdisposition中设置contentTypeproperties上传文件

解决方法

请尝试这种方式:

AdalError: Get Token request returned http error: 400 and server response: {"error":"invalid_request","error_description":"AADSTS90002: Tenant 'domen name' not found. This may happen if there are no active subscriptions for the tenant. Check to make sure you have the correct tenant ID. Check with your subscription administrator.\r\nTrace ID: num-num-num-num-num\r\nCorrelation ID: num-num-num-num-num\r\nTimestamp: 2020-10-18 17:02:34Z","error_codes":[90002],"timestamp":"2020-10-18 17:02:34Z","trace_id":"num-num-num-num-num","correlation_id":"num-num-num-num-num","error_uri":"https://login.microsoftonline.com/error?code=90002"}

如果还有其他问题,请告诉我!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。