Skip to content

Instantly share code, notes, and snippets.

@ryanmcgrath
Forked from Marak/gist:901175
Created April 4, 2011 05:45
Show Gist options
  • Save ryanmcgrath/901183 to your computer and use it in GitHub Desktop.
Save ryanmcgrath/901183 to your computer and use it in GitHub Desktop.
encoded_data = x
request {
uri: 'http://stashbox.org/upload.php',
method: 'POST',
uri: 'http://...',
multipart: [
{
'content-type': 'multipart/form-data',
body: encoded_data
}
}, (err, res, body) ->
callback(null, body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment