Skip to content
Snippets Groups Projects
Commit b8b378e1 authored by michael.minelli's avatar michael.minelli
Browse files

API => Reformat fieldSize limit

parent c05d958d
No related branches found
No related tags found
1 merge request!3Return error when client headers are missing (issue #19)
Pipeline #29955 passed
......@@ -38,7 +38,9 @@ class API implements WorkerTask {
private initBaseMiddlewares() {
this.backend.use(multer({
limits: { fieldSize: 15 * 1024 * 1024 }
limits: {
fieldSize: 15728640 // 15MB
}
}).none()); //Used for extract params from body with format "form-data", The none is for say that we do not wait a file in params
this.backend.use(morganMiddleware); //Log API accesses
this.backend.use(helmet()); //Help to secure express, https://helmetjs.github.io/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment