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

At this page,, we can find a list of example projects. Among these examples, there is one project is about Java File Upload ( 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 ( " … 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:


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