mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-16 00:05:57 +00:00
Upping the express bodyPRasrserjson limit to 25mb
This commit is contained in:
@@ -121,6 +121,7 @@ var EditPage = React.createClass({
|
|||||||
this.setState({
|
this.setState({
|
||||||
isPending : false,
|
isPending : false,
|
||||||
isSaving : false,
|
isSaving : false,
|
||||||
|
errors : err,
|
||||||
lastUpdated : res.body.updatedAt
|
lastUpdated : res.body.updatedAt
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ var bodyParser = require('body-parser')
|
|||||||
var express = require("express");
|
var express = require("express");
|
||||||
var app = express();
|
var app = express();
|
||||||
app.use(express.static(__dirname + '/build'));
|
app.use(express.static(__dirname + '/build'));
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json({limit: '25mb'}));
|
||||||
|
|
||||||
//Mongoose
|
//Mongoose
|
||||||
var mongoose = require('mongoose');
|
var mongoose = require('mongoose');
|
||||||
|
|||||||
Reference in New Issue
Block a user