multer icon indicating copy to clipboard operation
multer copied to clipboard

LIMIT_UNEXPECTED_FILE seems like it has the wrong error message?

Open bigboypantson opened this issue 1 year ago • 0 comments

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"?

bigboypantson avatar Aug 09 '22 13:08 bigboypantson