Skip to content

Commit

Permalink
increasing payload size even further - 400mb
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciojs authored Jan 27, 2022
1 parent e998dce commit 7e1f01f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pdf-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ const compression = require('compression');
app.use(compression());
app.use(bodyParser.urlencoded({
extended: true,
limit: process.env.REQUEST_SIZE_LIMIT || '250mb',
limit: process.env.REQUEST_SIZE_LIMIT || '400mb',
parameterLimit: 1000,
})); // support encoded bodies
app.use(bodyParser.json()); // support json encoded bodies
app.use(bodyParser.json({
limit: process.env.REQUEST_SIZE_LIMIT || '400mb',
})); // support json encoded bodies

const storagePath = path.join(__dirname, 'storage');
if (!fs.existsSync(storagePath)) {
Expand Down

0 comments on commit 7e1f01f

Please sign in to comment.