title: How to upload a file to amazon Glacier using Nodejs?
body: <p>I found <a href="http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/examples.html#Amazon_Glacier__Uploading_an_Archive" rel="nofollow">this example</a> on the amazon aws docs.</p>
  
  <pre><code>var glacier = new AWS.Glacier(),
      vaultName = 'YOUR_VAULT_NAME',
      buffer = new Buffer(2.5 * 1024 * 1024); // 2.5MB buffer
  
  var params = {vaultName: vaultName, body: buffer};
  glacier.uploadArchive(params, function(err, data) {
    if (err) console.log("Error uploading archive!", err);
    else console.log("Archive ID", data.archiveId);
  });
  </code></pre>
  
  <p>But I don't understand where my file goes, or how to send it to the glacier servers?</p>