One of the example projects listed by Lightbend is not working for larger files

At this page, https://developer.lightbend.com/start/?group=play, we can find a list of example projects. Among these examples, there is one project is about Java File Upload (https://developer.lightbend.com/start/?group=play&project=play-samples-play-java-fileupload-example). This project works for small files, but if you try to upload a larger file, for example, which has a size about 15M, we will get a page says “The connection was reset”.

Does anyone have any idea about this?

Found something in the document (https://www.playframework.com/documentation/2.8.x/JavaBodyParsers#Content-length-limits): " … the disk buffer limit is configured using play.http.parser.maxDiskBuffer , and defaults to 10MB". My file did go above 10MB, so likely this is the reason.

So that is some progress and I added the following to application.conf:

play.http.parser.maxMemoryBuffer=1024k
play.http.parser.maxDiskBuffer=20480K

which unfortunately still does not help. So if you have any idea on this, please kindly let me know.

It’s strange, I used the following configuration in application.conf and I’m able to upload files greater than 1GB

play.http.parser.maxMemoryBuffer = 256kB
play.http.parser.maxDiskBuffer = 2GB