Skip to content

Commit

Permalink
attempts to fix issue with large file uploads in the range approachin…
Browse files Browse the repository at this point in the history
…g 1mb files (work in progress) #49
  • Loading branch information
jamemackson committed Jul 16, 2015
1 parent 60ae294 commit e35f2e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions server/config/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {

Expand Down Expand Up @@ -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();
//},


/***************************************************************************
Expand All @@ -69,7 +71,7 @@ module.exports.http = {
* *
***************************************************************************/

// bodyParser: require('skipper')
bodyParser: skipper

// },

Expand Down
1 change: 1 addition & 0 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit e35f2e4

Please sign in to comment.