can't read the Part :
my code :
Part filePart = request.getPart("PdfFile");
out.print(filePart.getSize()+"");
the error :
Unable to process parts as no multi-part configuration has been provided
can't read the Part :
my code :
Part filePart = request.getPart("PdfFile");
out.print(filePart.getSize()+"");
the error :
Unable to process parts as no multi-part configuration has been provided
I recommend using Apache Commons Fileupload: http://commons.apache.org/proper/commons-fileupload/
Define a multipart resolver like this in your context file
<beans:bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<beans:property name="maxUploadSize" value="10000000" />
</beans:bean>