fix: allow big uploads (up to 50mb)
This commit is contained in:
parent
22f8c46d6a
commit
f414d64480
4
app.js
4
app.js
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue