I am sending an image file from an android client along with some other data. The image is sent as a Base64 string. I am trying to store the image in the server but it returns a 413 http status code.
Some solutions suggested increasing the body-parser limit using, app.use(bodyParser({limit: '50mb'}));
, but the code is not in the launcher file app.js
. How can I do that in another file?