Installed and configured Multer for bounded, in-memory multipart uploads so invoice images did not need temporary disk storage. A multipart request reached the route and continued through the expected error-handling path successfully.
- What worked
- Its middleware integrated directly with the existing server and supported file type and size controls with minimal code.