When I upload large files (greater than 1 MB) in play framework 2.0 I get
"413 Request Entity Too Large" error.
Cou
See http://www.playframework.com/documentation/2.0.x/ScalaBodyParsers
or Java version: http://www.playframework.com/documentation/2.0.x/JavaBodyParsers
extract:
// Accept only 10KB of data.
def save = Action(parse.text(maxLength = 1024 * 10)) { request =>
Ok("Got: " + text)
}
And you can configure this in your application.conf using parsers.text.maxLength.