title: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException
body: <p>How to handle</p>
  
  <blockquote>
    <p>java.lang.IllegalStateException:
    org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException:
    The field fileName exceeds its maximum permitted size of 3145728
    bytes.</p>
  </blockquote>
  
  <p>This happens after uploading a file which is bigger than maxFileSize limit in servlet @MultipartConfig. Is there a way to load in browser custom error page or something else because after that client recievs </p>
  
  <blockquote>
    <p>The connection was reset</p>
  </blockquote>