M
M
Mikhailo Poberezhny2016-08-04 21:00:31
Microsoft Azure
Mikhailo Poberezhny, 2016-08-04 21:00:31

How to upload files to blob azure storage using node.js?

Guys throw off an example of a working code if possible. At work, they gave me a task to create an account, but I can’t figure it out)) I need to upload pictures

var azure = require('azure-storage');
//var blobSvc = azure.createBlobService();
var blobService = azure.createBlobService('mystorage', 'key');

var container = {
    name: 'images'
};

blobService.createContainerIfNotExists(container.name, function(error, result, response){
    if(!error){
        // Container exists and allows
        // anonymous read access to blob
        // content and metadata within this container
    }
});

an example of what I found
sorry for stupidity))

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question