Hi! I would assume that you should set the form levele restriction stricter than application or server level to allow the form to be processed and thus give way for the onFileUploadException to be invoked.
** Martin to 9. kesäk. 2022 klo 14.57 Ryo Tsunoda (try0.developm...@gmail.com) kirjoitti: > Hi. > > Looking at Form#onFileUploadException, I see that it sets an error message > (resource key: uploadTooLarge), is there any way to display this error in > the browser? > > I use Form#setMaxSize and ApplicationSettings#setDefaultMaximumUploadSize > methods. > When I upload a file that exceeds these settings, I would like to return a > response with an error message and display it on browser. However, the > browser displays [ERR_CONNECTION_RESET] now. > > > Regards, > Ryo Tsunoda. >