Skip to content

Fixed the missing "=" in options.filter#732

Merged
GrosSacASac merged 1 commit intonode-formidable:masterfrom
Rishi-121:master
May 8, 2021
Merged

Fixed the missing "=" in options.filter#732
GrosSacASac merged 1 commit intonode-formidable:masterfrom
Rishi-121:master

Conversation

@Rishi-121
Copy link
Copy Markdown
Contributor

@Rishi-121 Rishi-121 commented May 8, 2021

I have fixed the missing "=" in the options.filter.

Before

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

After

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

@GrosSacASac GrosSacASac merged commit bdb61f2 into node-formidable:master May 8, 2021
@LeonardoDaLuz
Copy link
Copy Markdown

this option doesn't work....

@GrosSacASac
Copy link
Copy Markdown
Contributor

you need to install from master branch ... #718

GrosSacASac added a commit that referenced this pull request Oct 30, 2021
* chore: start version 3

* feat: Use ES modules (#727)

* feat: Url search params and remove multiple (#730)

* docs: Fixed the missing "=" in options.filter (#732)

* docs: fix example

* docs: specify what part actually is

* docs: fix types

* docs: add warning for progress event

* docs: finish removing multiples in examples

* docs: add example for express as middleware

* docs: example handle common internet errors

* feat: add corepack support

* fix: corepack support

* fix: fix examples comment

* fix: fix example comment

* feat: add firstValues, readBooleans helpers (#757)

* feat: add firstValues, readBooleans helpers

* feat: export types

* docs: document helpers

* docs: fix example

* fix: #760 (#761)

* fix: fix error when there is an error

* tests: fix some of the tests  (#763)

* chore: up supertest jest and nyc

* tests: convert to import , fix some tests

* test: make malformed boundary as per comment ?

* tests: refactor

* style: fix some prettier issues (#764)

* chore: publish as 3.x tag

* docs: add changelog link

* docs: typo

Co-authored-by: Hrushikesh Das <dashrushikesh1121@gmail.com>
Co-authored-by: Jimmy Wärting <jimmy@warting.se>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants