Answer the question
In order to leave comments, you need to log in
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
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question