Click here to Skip to main content
15,312,009 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In Linux
I want to get the location of an input file but I can only get the name of the image

<form action="Uploader" method="post">
   <input type="file" name="imageFile" />
   <input type="submit" value="Upload" />

(Example the location of the file is C:\Program Files\AVG\AVG9\image.gif)

String path = request.getParameter("imageFile");

When I print the path it only display the name of the file which is image.gif
Updated 26-Jul-10 23:22pm

1 solution

first your form need be multi-parts, second try to use apache upload file for not do a hard work! ^_^

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900