Skip to content

Instantly share code, notes, and snippets.

@goshmx
Last active November 23, 2016 16:28
Show Gist options
  • Save goshmx/93925c75285c6726aa88 to your computer and use it in GitHub Desktop.
Save goshmx/93925c75285c6726aa88 to your computer and use it in GitHub Desktop.
Fix Sails js error . Request entity too large. Code 413
//This fragment goes in your config/http.js file.
//Ensure to install skipper previusly...
//Tested in Sails.js v0.10.5
module.exports.http = {
bodyParser: (function () {
var opts = {limit:'50mb'};
var fn;
// Default to built-in bodyParser:
fn = require('skipper');
return fn(opts);
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment