When I receive a json object with 5 fields, one being the base 64 of an image (maximum size 150 kb), my Express server's body parser throws a 413 error stating entity too large. How can I configure the limit of characters in the HTTP request? Should I use multipart formdata as the content type instead? If so, how do I set it up on the server using Express and TypeScript?
I attempted to set the limit of the bodyparser JSON to 100mb.
expressApp.use(json({ limit: '100mb' }));
expressApp.use(urlencoded({ limit: '100mb', extended: true,
parameterLimit: 500000 }));