Last active
November 23, 2016 16:28
-
-
Save goshmx/93925c75285c6726aa88 to your computer and use it in GitHub Desktop.
Fix Sails js error . Request entity too large. Code 413
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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