-
-
Save coryarmbrecht/5b16596018411625a691 to your computer and use it in GitHub Desktop.
Inconsistent behavior piping to rackspace cloudfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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