hai everybody am unable to find full path of file. am using following code to import the file. in internet explore am getting full path, but in firefox(version-8) i'm getting only the file name instead of the entire file path.please help me to find full path of file..


<td> <input type="file" id="importExtruderFile" name="importExtruderFile"/> </td>

String getFilePath = request.getParameter("importExtruderFile");
File file = new File(getFilePath);

thank you

The inputs with type="file" work differently. You may be able to take the request.getParameter("importExtruderFile") but you cannot use that path to create a file and read it. I don't remember it exactly but if you search the net you will find what methods to use.

Take a look at this example that I found in a rush:
http://www.developershome.com/wap/wapUpload/wap_upload.asp?page=jsp3

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.