Anyway, I tried your parameters, and I still cannot upload file. Here is what I have in my log:
2021-01-21 22:17:13,068 [INFO] from controllers.MyMultipartFormDataBodyParser in play-dev-mode-akka.actor.default-dispatcher-69 - config.parser().maxDiskBuffer() = 2000000000
2021-01-21 22:17:13,068 [INFO] from controllers.MyMultipartFormDataBodyParser in play-dev-mode-akka.actor.default-dispatcher-69 - config.parser().maxMemoryBuffer() = 256000
2021-01-21 22:17:13,093 [WARN] from play.filters.CSRF in play-dev-mode-akka.actor.default-dispatcher-69 - [CSRF] Check failed because no or invalid token found in body for /upload
2021-01-21 22:17:13,093 [WARN] from play.filters.CSRF in play-dev-mode-akka.actor.default-dispatcher-69 - [CSRF] Check failed with NoTokenInBody for /upload
notice I am using config.parser().maxMemoryBuffer() = 256000, and if I try to upload a file that is smaller than 256000 bytes, it works just fine!
So this is strange. Did you have to make any other change after you download the project? are you which version of Play! are you using?
thank you very much for the reply. It still does not work for me - the file size cannot be larger than play.http.parser.maxMemoryBuffer. This does not make sense to me because the whole idea of “streaming it”, is to be able to stream it with a much smaller memory space and without reading the whole file into the memory first. But the file size has to be smaller than play.http.parser.maxMemoryBuffer, this makes me think it might just read the whole file into memory …
Thank you so much for the help! I hope someone with a better idea can pass this place and let me know what is happening…