Skip to content

Instantly share code, notes, and snippets.

@coryarmbrecht
Created March 28, 2013 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coryarmbrecht/5b16596018411625a691 to your computer and use it in GitHub Desktop.
Save coryarmbrecht/5b16596018411625a691 to your computer and use it in GitHub Desktop.
Inconsistent behavior piping to rackspace cloudfiles
app.post('/product-upload', function(req, res, next) {
var tmp_path = fs.createReadStream(req.files.productimage.path);
filed(tmp_path).pipe(rackspace.upload({
container: 'kmd',
remote: 'product-' + req.body.name + '.jpg'
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment