Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of
Clojure in Action
this week in the
MultipartHttpServletRequest File upload problem
posted 6 years ago
I'm trying to upload a file, but I keep getting a null MultipartFile back.
The controller code:
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request; MultipartFile multipartFile = multipartRequest.getFile("configFile");
<input type='file' name='configFile' />
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="maxUploadSize" value="100000"/> </bean>
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.
Poor is the man whose pleasures depend on the permission of another.
rocket mass heater
Problem with File uploading from popup
File Download via Spring does not work in Firefox
file uploading problem ( greater than 2MB)
how to handle file uploads in spring
Unable to upload file