-
Apr 28th, 2009, 05:44 AM
#1
Facing issue in uploading files in SWF2.0
Hi,
I am trying to upload files using SWF2.0.
JSP page i am using like this
<form name="designObjDeploymentModel" method="POST" enctype="multipart/form-data" >
<input type="file" id="graphicArchitecture" name="graphicArchitecture" size="25" value="${designObjDeploymentModel.graphicArchitect ure}"/>
In Application context i am writing
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.C ommonsMultipartResolver">
<property name="maxInMemorySize" value="5000000"/>
<property name="maxUploadSize" value="5000000"/>
</bean>
in action class i am calling a method for processing and uploading the files
but it is never calling that particular processform()method
inside processform()method code i am trying to execute is like this
file=context.getRequestParameters().getMultipartFi le("graphicArchitecture");
it is staying on the same page
when I am removing enctype="multipart/form-data" feature from JSP page it is going inside the processform()method and executing with errors.
Am I doing something wrong or is there any bug with SWF2.0 .
Please help me out to resolve this issue.
Thanks
Vijay Kumar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules