I need to set max filesize for uploaded files in my servlet running on tomcat. I tried multipart config which worked on jetty, but tomcat just ignored it. It means deployment on tomcat server caused even big files can be uploaded. My configuration:
<servlet>
<servlet-name>myServlet</servlet-name>
<servlet-class>sk.test.MyServlet</servlet-class>
<multipart-config>
<max-file-size>1048576</max-file-size>
<max-request-size>104857600</max-request-size>
</multipart-config>
</servlet>
I already tried annotated configuration, which didnt work too.
Using: Tomcat 7.0.54, Servlet 3.0
I will appreciate any help, thanks