I want to get full path of file name from html.
Code:
 <form action="test" method="post">
  <p>Enter Name : <input type="text" name="name"></p>
  <p>Choose file : <input type="file" name="fName"></p>
  <p><input type="submit" value="Enter"></p>
 </form>
I wrote above code in html and I retrieved file name from servlet.
 String fName = request.getParameter("fName");
but it got only file name, didn't get full path of file name. I found some site that show to get full path of file name. It's code as follow.
   <form action="test" method="post" enctype="multipart/form-data">
when using above code, name and fName are null value return.
How to get full path of file name? Please explain me! Thanks.
 
     
     
    