title: How to get the file name of input type="file" inside the servlet for File Upload
body: <p>The action EdgeWarUpload in the below form is a servlet and it is to upload a file.</p>
  
  <pre><code>&lt;form action="EdgeWarUpload" method="post"
                      enctype="multipart/form-data"&gt;
      &lt;input type="file" name="file" size="50" /&gt;
          &lt;br /&gt;
       &lt;input type="submit" value="Upload File" /&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>It is working fine but inside the servlet post method , I want the name of the file that is uploaded.I tried with </p>
  
  <pre><code>request.getParameter("file");
  </code></pre>
  
  <p>But that is giving me null. 
  How can I  get the value of the file name from the form.Please check.</p>