title: Retrieve the file name while using file type input
body: <p>I have a <code>jsp</code> with this code snippet in it.</p>
  
  <pre><code>&lt;form name="AudioFileConversionForm" enctype="multipart/form-data" method="post" &gt;
  Choose File: &lt;input type="file" id="audioFile" name="audioFile"&gt;&lt;br&gt;
  &lt;input type="submit" value="upload"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is my controller in <code>spring</code>.</p>
  
  <pre><code>public String convertFile(HttpServletRequest request, HttpSession session) {
  
      String audioFile = request.getParameter("audioFile");
      System.out.println(request.getParameter("audioFile"));
      System.out.println("Audio File Conversion Successful");
  }
  </code></pre>
  
  <p>I am unable to retrieve the name of the file, it shows <code>null</code>.
  I know that I can retrieve the name using JQuery or javascript, but I don't want to use them both. I want to do it using pure java.
  Can anyone please help me?</p>