Announcement Announcement Module
No announcement yet.
Facing issue in uploading files in SWF2.0 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Facing issue in uploading files in SWF2.0

    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"/>

    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.
    Vijay Kumar