当我在门户中手动创建附加 blob 并尝试以下操作时:
const blockBlobClient = containerClient.getAppendBlobClient('appendtest.csv');
const uploadBlobResponse = await blockBlobClient.appendBlock('test,','test,'.length);
奇迹般有效。
但如果我尝试:
const blockBlobClient = containerClient.uploadBlockBlob('appendtest2.csv','test,','test,'.length, {"x-ms-blob-type":"AppendBlob"});
const uploadBlobResponse = await blockBlobClient.appendBlock('test,','test,'.length);
我收到 blob 不属于受支持类型的错误。