Tutorials for File Uploading. I copied the code and saved it my project. I change the
String filePath = context.getInitParameter("file-upload");
into
String filePath = context.getInitParameter("uploads");
Because I want to save the image in the folder named uploads. This folder is located outside the folder where I have put the script. I even tried
String filePath = context.getInitParameter("../uploads");
But in the output code
out.println("Uploaded Filename: " + filePath + fileName + "<br>");
FilePath is null and there is no image in the folder. How to properly set the filePath?