fix: allow big uploads (up to 50mb)

This commit is contained in:
Paul Bienkowski 2020-11-18 21:50:33 +01:00
parent 22f8c46d6a
commit f414d64480

4
app.js
View file

@ -18,8 +18,8 @@ app.use(cors());
// Normal express config defaults
app.use(require('morgan')('dev'));
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.urlencoded({ limit: '50mb', extended: false }));
app.use(require('method-override')());
app.use(express.static(__dirname + '/public'));