We use Nest.js FilesInterceptor which uses multer under the hood. When fieldname is not provided, but fieldNameSize is set, the above line is still executed and TypeError is thrown accordingly. Check this - https://github.com/expressjs/multer/blob/master/lib/make-middleware.js#L103 We need to prevent it. <img width="905" alt="Screenshot 2023-10-04 at 12 39 44" src="https://github.com/expressjs/multer/assets/92851293/249d3468-8441-405b-a583-94d2d776678c"> For fixing this issue please add this line <img width="1745" alt="Screenshot 2023-10-04 at 12 53 18" src="https://github.com/expressjs/multer/assets/92851293/2651b004-dce5-43c8-a7f3-1378f6f57332">