Skip to content

Commit 7e1f01f

Browse files
authored
increasing payload size even further - 400mb
1 parent e998dce commit 7e1f01f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pdf-service.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ const compression = require('compression');
1010
app.use(compression());
1111
app.use(bodyParser.urlencoded({
1212
extended: true,
13-
limit: process.env.REQUEST_SIZE_LIMIT || '250mb',
13+
limit: process.env.REQUEST_SIZE_LIMIT || '400mb',
1414
parameterLimit: 1000,
1515
})); // support encoded bodies
16-
app.use(bodyParser.json()); // support json encoded bodies
16+
app.use(bodyParser.json({
17+
limit: process.env.REQUEST_SIZE_LIMIT || '400mb',
18+
})); // support json encoded bodies
1719

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

0 commit comments

Comments
 (0)