The specified container does not exist

后端 未结 2 1411
别那么骄傲
别那么骄傲 2021-02-20 10:12

Am stuck with this error The specified container does not exist.

let me explain,

CloudBlobClient blobStorage = GetBlobStorage(\"upload\");
C         


        
2条回答
  •  北恋
    北恋 (楼主)
    2021-02-20 11:11

    I am very late, but still thought if my answer would be useful for anyone.

    I resolved this error by putting the correct "container name". It was different by default. I have cloned this GIT project : https://github.com/Azure-Samples/storage-blob-upload-from-webapp-node

    const
          express = require('express')
        , router = express.Router()
        , azureStorage = require('azure-storage')
        , blobService = azureStorage.createBlobService()
        , containerName = 'container' // added container name here, as my container name
        , config = require('../config')
    ;
    

提交回复
热议问题