In this example we are constructing a form with 3 fields that contain a string, a buffer and a file stream. var FormData = require('form-data'); var fs = require('fs'); var form = new FormData(); form.append('my_field', 'my value'); form.append('my_buffer', new Buffer(10)); form.append('my_file', fs.createReadStream('/foo/bar.jpg')); var FormData = require('form-data'); var http = require('http');

{{#tags}}- {{label}}
{{/tags}}