I have a requirement to support multiple file upload in one request. The user can select any number of files and upload them to the server. I would like limit each of those files not to exceed 10MB. I wrote the below code, but it limits the total size of all files combined to be less than 10MB, but I want to limit 10MB per file and total there could be any number of files. I am using spring web mvc 3.0
here is how I am setting the limit
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="maxUploadSize" value="10486784"/>
</bean>