Increase the Tomcat Upload Limit

The “manager”-App of the Tomcats has a limit of 50MiB. This limit is defined in the file WEB-INF/web.xml within the “manager”-App:

    <multipart-config>
      <!-- 50MB max -->
      <max-file-size>52428800</max-file-size>
      <max-request-size>52428800</max-request-size>
      <file-size-threshold>0</file-size-threshold>
    </multipart-config>

To increate the limit to 75MiB change the file like this:

    <multipart-config>
      <!-- 75MB max -->
      <max-file-size>78643200</max-file-size>
      <max-request-size>78643200</max-request-size>
      <file-size-threshold>0</file-size-threshold>
    </multipart-config>

If you have installed Tomcat in /opt/tomcat, the file will be here: /opt/tomcat/webapps/manager/WEB-INF/web.xml. If you have installed Tomcat with the package manager, it will be here: /usr/share/tomcat7-admin/manager/WEB-INF/web.xml