1 Reply Latest reply on Dec 26, 2006 8:36 AM by Vikash Anand

    File Uploding

    Vikash Anand Newbie

      Dear All;
      I need to upload one excel file to server and then to parse it to get it's contents. In JSP file i have following code:

      <form method="post" enctype="multipart/form-data" action="<portlet:actionURL/>">
       File: <input type="file" name="file" size="25">
      <input class="boldFlatbtn" type="submit" name="Upload_File" value="Upload File"/>

      In processAction i am using following code:
      System.out.println("Uploaded file path is : " + actionRequest.getParameter("file"));

      This is not showing me the file name.

      Please help me to how i can get that uploded file at processAction and to save it.
      I googled to find answer but i could not find any good results.

      Thanks in advance;
      Vikash Anand.