1

How to limit the file upload ? like php's upload_max_filesize and post_max_size. I also want to capture the resulting error myself, so that i can show the page again with a msg like "Too Big File, max allowed is X MB"

1 Answer 1

0

Try using the following in the application configuration:

parsers.text.maxLength = (size) k

You can change the 413 Request Entity Too Large response by applying play.avi.mvc.Results.EntityTooLarge

EntityTooLarge([Some Message])

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.