Skip to content

Commit

Permalink
docs: Fixed the missing "=" in options.filter (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishi-121 authored and GrosSacASac committed May 8, 2021
1 parent efa20b0 commit 98716a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ form.bytesExpected;
**Note:** use an outside variable to cancel all uploads upon the first error

```js
const options {
const options = {
filter: function ({name, originalFilename, mimetype}) {
// keep only images
return mimetype && mimetype.includes("image");
Expand Down

0 comments on commit 98716a1

Please sign in to comment.