expressjs / expressjs/multer

fileFilter not getting called if file is not provided

Open
#1,179 2 comments 0 reactions 0 assignees View on GitHub
awaiting more info
Dominant language
JavaScript
Stars
12.1k
Forks
1.1k
Avg merge
8d 2h
Merged PRs (30d)
21

Description

i want to check if the file is provided or not basically want to make the file mandatory field
but if the user has not provided file then the fileFilter method not getting called
there is maxCount property which restricts the maximum number of files but no way for minimum file validation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.