这应该工作。
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); })
这应该工作。
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); })