1
0
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:
Scott Tolksdorf
2016-05-19 08:21:26 -04:00
parent 6209fcd5cb
commit e7f1083edb
2 changed files with 2 additions and 1 deletions

View File

@@ -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
}) })
}) })

View File

@@ -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');