title: How we can upload multiple blobs to azure using nodejs
body: <p>I am trying to upload 6 images to azure blob from single endpoint that I get from a registration form. The code shows how to upload a single blob but I need to upload multiple blobs at the same time. How can I do it?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>app.post('/upload', function (req, res) {
    //var dirname = require('path').dirname(__dirname);
    //var dirname1 = require('path').dirname(dirname);
    var filename = req.files[0].filename;
    var path = req.files[0].path;
    var type = req.files[0].mimetype;
    var options = {
      contentType: type,
      metadata: { fileName: filename }
    }
    blobSvc.createBlockBlobFromLocalFile(containerName, filename, path, options, function (error, result, response) {
      if (error != null) {
        console.log('Azure Full Error: ', error)
      } else {
        console.log(result);
        console.log(response);
        var user = new User();
        user.name = req.body.name;
        user.picture = 'https://yourblob.blob.core.windows.net/profile/' + result.name;
        user.save(function (err) {
          if (err) {
            return res.json(err.message);
          }
          else {
            return res.json({ User: user });
          }
        });
      }
    });
  });
  </code></pre>