playframework/play-samples

`play-java-fileupload-example` is broken

Closed this issue · 1 comments

After upload file show Unauthorized page and the next lines in logs

WARN  p.filters.CSRF - [CSRF] Check failed because no or invalid token found in body for /upload
WARN  p.filters.CSRF - [CSRF] Check failed with NoTokenInBody for /upload

So, the issue was related with size of file. With files size of which is less then play.http.parser.maxMemoryBuffer upload successfully.