(Play 2.0) Set maximum POST size for AnyContent

后端 未结 3 837
清歌不尽
清歌不尽 2021-02-13 06:23

I\'m using Scala in Play 2.0, and I\'m getting a 413 error whenever large data (over 100KB) is POSTed to a particular endpoint. It\'s using the anyContent parser, and it\'s not

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-13 07:07

    Note for those using the raw parser, that one takes maximum as a parameter:

    Action(parse.raw(10000 * 1024))

    See the parse.raw method for more details.

提交回复
热议问题