Hi,
I'm trying to upload a file, but I keep getting a null MultipartFile back.
The controller code:
The input:Code:MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request; MultipartFile multipartFile = multipartRequest.getFile("configFile");
The bean:Code:<input type='file' name='configFile' />
I don't need to store the file, I only extract the content, thats all. If you have any questions about the code feel free to ask.Code:<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="maxUploadSize" value="100000"/> </bean>
Thanks!


Reply With Quote
