I'm currently having problems with the use of body-parser, because I'm trying to upload some files that are ~1MB.
Because of the fact, that the bodyParser (specifically the json-parser) is initialized with its default values in the index.js file, the allowed request size is always the default (which is 100KB) and therefore I keep getting "Request Entity Too Large"-Errors. There doesn't seem to be any way to reset this limit inside my own code.
Has anyone had this issue before?
In my opinion, a solution for this issue could be to add the body-parser config parameters to the config.json-file and then take them from there (if present).
I'm currently having problems with the use of body-parser, because I'm trying to upload some files that are ~1MB. Because of the fact, that the bodyParser (specifically the json-parser) is initialized with its default values in the index.js file, the allowed request size is always the default (which is 100KB) and therefore I keep getting "Request Entity Too Large"-Errors. There doesn't seem to be any way to reset this limit inside my own code. Has anyone had this issue before?
In my opinion, a solution for this issue could be to add the body-parser config parameters to the config.json-file and then take them from there (if present).
Please let me know your thoughts on this.