2 Replies Latest reply: Mar 13, 2007 3:58 PM by 807606 RSS

    a little problem about uploading a file

    807606
      Hi

      I was trying to upload a file (e.g., a .dat file). I just simply used html code:

      <input type="file" name="cdrfile">

      and then when I was trying to return the file and path using code:

      <%= request.getParameter("cdrfile")%>

      IE gives me the complete path (e.g., D:\file\first.dat), but Mozilla Firefox only return file name (e.g., first.dat) without the path.

      Can anyone give me some hints please?

      Thank you
      Ming