I am doing file uploads in tomcat 7 using the servlet 3 api.
I'm setting the <multipart-config> in web.xml.
How can I get access to the value of max-file-size in my java code, so I can tell the user what the max file size is?
I've trawled through the apis for Servlet, ServletContext, ServletConfig, ServletRegistration and can't find anything. The multipart-config values are not among the initParameters.
I think another way of asking this is, how can I get hold of the MultipartConfigElement object for the servlet? Again, having trawled through the api's, I can't find any way of retrieving this.