I can define MultipartResolver like this with a maxUploadSize of 10K (10,000 bytes):
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="maxUploadSize" value="10000"/> </bean
However, if the administrator needs to download some large files through the administrator’s interface that exceed this limit, you need to temporarily reinstall the application to do this - configured again to make sure that ordinary users do not exceed this limit .
Although this happens, of course, an ordinary user can potentially sneak a large file without warning.
Is there a way to configure the converter to use a different maxUploadSize in these two situations?
Tammen
source share