Steps to reproduce:
- Start up Liferay
- Log in as the admin ([email protected])
- Go to your profile
- Upload the picture attached (Which is 390Kb) (Notice how it mentions that the max file size is 300Kb)
Expected behaviour: The picture gets rejected as it is over the size limit
Actual behaviour: The picture is uploaded despite its over the size limit.