diff --git a/server/config/http.js b/server/config/http.js index c0ae3f6..774ce47 100644 --- a/server/config/http.js +++ b/server/config/http.js @@ -8,6 +8,8 @@ * For more information on configuration, check out: * http://sailsjs.org/#/documentation/reference/sails.config/sails.config.http.html */ +var skipper = require('skipper'); +skipper.limit = 52428800; module.exports.http = { @@ -54,10 +56,10 @@ module.exports.http = { * * ****************************************************************************/ - // myRequestLogger: function (req, res, next) { - // console.log("Requested :: ", req.method, req.url); - // return next(); - // } + //myRequestLogger: function (req, res, next) { + // console.log("Requested :: ", req.method, req.url); + // return next(); + //}, /*************************************************************************** @@ -69,7 +71,7 @@ module.exports.http = { * * ***************************************************************************/ - // bodyParser: require('skipper') + bodyParser: skipper // }, diff --git a/server/package.json b/server/package.json index 11644ec..f7157ac 100644 --- a/server/package.json +++ b/server/package.json @@ -22,6 +22,7 @@ "sails-hook-dev": "balderdashy/sails-hook-dev", "sails-mongo": "^0.10.5", "sails-mysql": "^0.10.12", + "skipper": "^0.5.5", "skipper-s3": "^0.5.5", "slug": "^0.9.1" },