So about a month ago I asked a question regarding superagent and sending files, but got no response at all. I would still like to find out how to do this as I enjoy using su
This should work.
var file = this.refs.File.getDOMNode().files[0]; Request.post('http://localhost:8080/files') .set("Content-Type", "application/octet-stream") .send(file) .end((err, res) => { console.log(err); console.log(res); })