diff --git a/README.md b/README.md index 454d46c6..3e1b1f63 100644 --- a/README.md +++ b/README.md @@ -381,7 +381,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");