Reputation: 1310
In Play Framework you could limit upload size by adding:
parsers.MultipartFormData.maxLength=[limit]
in application.conf. But it doesn't seem to work with current version of Play Framework. How do I do this in 2.2 version?
Upvotes: 3
Views: 4185
Reputation: 1041
In Play 2.2
parsers.text.maxLength=[limit]
https://www.playframework.com/documentation/2.2.x/ScalaBodyParsers#Max-content-length
In Play 2.4
play.http.parser.maxDiskBuffer=[limit]
https://www.playframework.com/documentation/2.4.x/ScalaBodyParsers#Max-content-length
Upvotes: 7