Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created May 24, 2012 14:08
Show Gist options
  • Save brianleroux/2781758 to your computer and use it in GitHub Desktop.
Save brianleroux/2781758 to your computer and use it in GitHub Desktop.
example usage of s4
var photo = require('s4').create(require('s3-config'))
, path = require('path').join(__dirname, 'test.jpg')
photo.save(path, function(err, url) {
if (err) throw new Error('fuuuu')
console.log('saved! the new url is: ' + url)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment