From e35f2e4ab872d6bfd28ef6b6541b193fb7b9011b Mon Sep 17 00:00:00 2001 From: jame Date: Wed, 15 Jul 2015 03:18:59 -0500 Subject: [PATCH] attempts to fix issue with large file uploads in the range approaching 1mb files (work in progress) #49 --- server/config/http.js | 12 +++++++----- server/package.json | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) 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" },