Hi
I am using FCKeditor with Struts2 and Spring and having problems uploading image files.
Debugging -- I can see that the ServletFileUpload.parseRequest(request); always returns zero files in the list.
ServletFileUpload upload = new ServletFileUpload(factory);
List<FileItem> items = upload.parseRequest(request);
I've used Spring
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- one of the properties available; the maximum file size in bytes -->
<property name="maxUploadSize" value="100000" />
</bean>
in the configutation.
But see that the request is always a
org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper
Does anyone have any ideas of how to get around this problem.
Thanks in advance.
I am using FCKeditor with Struts2 and Spring and having problems uploading image files.
Debugging -- I can see that the ServletFileUpload.parseRequest(request); always returns zero files in the list.
ServletFileUpload upload = new ServletFileUpload(factory);
List<FileItem> items = upload.parseRequest(request);
I've used Spring
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- one of the properties available; the maximum file size in bytes -->
<property name="maxUploadSize" value="100000" />
</bean>
in the configutation.
But see that the request is always a
org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper
Does anyone have any ideas of how to get around this problem.
Thanks in advance.
Re: FCKeditor with Struts2 and Spring
I noticed that there is no data sent in POST.
Re: FCKeditor with Struts2 and Spring
To correct this I needed to change the
to
Hope that helps.
Re: FCKeditor with Struts2 and Spring
It helped! Thanks a lot for not losing hours I would spent looking for this answer