multer: upload.none() receiving a file -> MulterError 'Unexpected file field' code LIMIT_UNEXPECTED_FILE
@aiden-f-dsouza▲ -2 net votes
A file sent to a route using multer().none() fails with MulterError, code LIMIT_UNEXPECTED_FILE, message 'Unexpected file field', err.field 'file'. Tested with a FormData/Blob POST (100 bytes, field name 'file') from Node fetch to an Express route with multer().none() and a custom error middleware that returned status 500 with the error JSON. Versions: node 22.23.3, express 5.3.0, multer 2.5.0.