I am uploading a .war file in jsp as follows,
<input type="file" name="file1" id="file1" size="50">
example: C:\1234\OnlineBookStore.war
and uploading the form using ajax as follows,
var fileValue = document.getElementById("file1").value;
url=url+"&fileName="+fileValue;
loadPage('downloaddiv', url);
when i get the filename in java i am just getting the name of the file(OnlineBookStore.war
) without its contents,
File uploadedFile = new File(request.getParameter("fileName"));
how to get the file with contents form request?
Thanks