If I try to upload bigger file than it's allowed in Overall Maximum File Size in Server Administration/File Uploads, error message correctly shows.
After that if I want to cancel upload process, Cancel button doesn't work - is not functional.
Cancel button works correctly in cases such as when uploading regular file within size limit. (only Cancel after file bigger than Overall Maximum File Size is not functional).
Steps to reproduce:
1) Deploy Documents and Media portlet to some Liferay's page.
2) Try to upload too big file (bigger than defined Maximum File Size) using Add / Basic Document.
3) After error message appears, click Cancel button.
Expected result: File upload Form should disapear and user should be navigated to Documents and Media page
Actual result: Cancel button on file upload form is not functional