expressjs / multer

Node.js middleware for handling `multipart/form-data`.
MIT License
11.63k stars 1.06k forks source link

Fixes expressjs/multer#1233. Makes multer handle missing field names. #1256

Open Markiz9999 opened 7 months ago

Markiz9999 commented 7 months ago

Without this fix fields without a name result in a "TypeError: Cannot read property 'length' of undefined".

The current change allows getting an error from multer that makes it possible to handle it in servers.

See: https://github.com/expressjs/multer/issues/1233