Skip to content

Commit

Permalink
- Fixed: filesize is not a valid option? knownLength should be used f…
Browse files Browse the repository at this point in the history
…or streams
  • Loading branch information
JBtje committed Jun 30, 2019
1 parent ddeaa2a commit d88f912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Expand Up @@ -213,7 +213,7 @@ You may provide a string for options, or an object.
form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), 'bar.jpg' );

// provide an object.
form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), {filename: 'bar.jpg', filesize: 1045} );
form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), {filename: 'bar.jpg', contentType: 'image/jpeg', knownLength: 19806} );
```

#### _Array_ getHeaders( [**Array** _userHeaders_] )
Expand Down

0 comments on commit d88f912

Please sign in to comment.