Browse Source

change max post data size to 10mb

master
filesite 6 months ago
parent
commit
b87e40ce09
  1. 4
      index.mjs

4
index.mjs

@ -16,9 +16,9 @@ app.disable('x-powered-by');
app.use(express.static('public')); app.use(express.static('public'));
// parse application/x-www-form-urlencoded // parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ limit: '2mb', extended: false })) app.use(bodyParser.urlencoded({ limit: '10mb', extended: false }))
// parse application/json // parse application/json
app.use(bodyParser.json({ limit: '2mb' })) app.use(bodyParser.json({ limit: '10mb' }))
app.use('/api', apiRouter); app.use('/api', apiRouter);

Loading…
Cancel
Save