Skip to content

Instantly share code, notes, and snippets.

View cosmicflame's full-sized avatar

Brian Beckett cosmicflame

  • Cambridge, UK
View GitHub Profile
@cosmicflame
cosmicflame / 1: Code with absolute path
Created May 9, 2014 21:49
unirest-nodejs .attach() path issues on Windows
var unirest = require('unirest')
var path = 'C:\\Temp\\test-data.txt'
unirest.post('http://httpbin.org/post')
.attach('my-file', path)
.end(function(res) {
console.log(res.body)
})