title: Resize and Upload Image Flow in NodeJS
body: <p>All,</p>
  
  <p>I have an array of sizes such as sizes = [20,40,60,80]</p>
  
  <p>I need to loop over those, resize the src image to each size and name them appropriately.</p>
  
  <p>Then, using knox, upload them to s3, and then remove the resized image.</p>
  
  <p>Here is what I have:</p>
  
  <p><a href="http://jsfiddle.net/bpoppa/ZAcA7/" rel="nofollow">http://jsfiddle.net/bpoppa/ZAcA7/</a></p>
  
  <p>The problem is the flow control.  When knox tries to putFile, I get an error saying it doesn't exist, which means knox is either running before the resize is done or it is already deleted at that point.</p>
  
  <p>Any tips?  All help is appreciated.</p>
  
  <p>Thanks!</p>