diff --git a/README.md b/README.md index 77135b3c..0c8be869 100644 --- a/README.md +++ b/README.md @@ -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");