Skip to content

Commit

Permalink
Merge pull request expressjs#775 from gireeshpunathil/doc-cb-null-param
Browse files Browse the repository at this point in the history
doc: clarify the callback calling convention
  • Loading branch information
LinusU authored Mar 8, 2020
2 parents 92d83c1 + 497c542 commit 099184f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ the file (`file`) to aid with the decision.
Note that `req.body` might not have been fully populated yet. It depends on the
order that the client transmits fields and files to the server.

For understanding the calling convention used in the callback (needing to pass
null as the first param), refer to
[Node.js error handling](https://www.joyent.com/node-js/production/design/errors)

#### `MemoryStorage`

The memory storage engine stores the files in memory as `Buffer` objects. It
Expand Down

0 comments on commit 099184f

Please sign in to comment.