I am using
<input type="file" name="file" value="">
to browse the image file for upload. But when I use
String imageUrl = request.getParameter("file");
out.println("logofile" + imageUrl);
at the action page, it only shows the image name not the full absolute path. When I try to use
File file = new File(imageUrl);
it throws the following exception
java.io.FileNotFoundException: apple-logo.jpg (The system cannot find the file specified)
What am I doing wrong?