Skip to content

Commit

Permalink
Merge pull request #1288 from cliffcrosland/patch-1
Browse files Browse the repository at this point in the history
Update README.md to explain custom file use case
  • Loading branch information
nylen committed Nov 28, 2014
2 parents 28b24a0 + 068ab7d commit 69068f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -260,6 +260,7 @@ var formData = {
fs.createReadStream(__dirname + '/attachment2.jpg')
],
// Pass optional meta-data with an 'options' object with style: {value: DATA, options: OPTIONS}
// Use case: for some types of streams, you'll need to provide "file"-related information manually.
// See the `form-data` README for more information about options: https://github.com/felixge/node-form-data
custom_file: {
value: fs.createReadStream('/dev/urandom'),
Expand Down

0 comments on commit 69068f1

Please sign in to comment.