expressjs / expressjs/multer

LIMIT_UNEXPECTED_FILE seems like it has the wrong error message?

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

Description

https://github.com/expressjs/multer/blob/4f4326a6687635411a69d70f954f48abb4bce58a/lib/multer-error.js#L10

I am using the LIMIT_UNEXPECTED_FILE error message when a file uploaded is the wrong file type, the human readable error message looks wrong to me, it says: "Unexpected field" should this read "Unexpected File"?

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.