title: The method getSubmittedFileName() is undefined for the type Part
body: <p>I am trying to upload multiple files in servlet 3.0&gt;. I am getting an error at getSubmittedFileName() method. Why am I getting this error?</p>
  <pre><code>protected void doPost(HttpServletRequest request,
          HttpServletResponse response) throws ServletException, IOException {
      String description = request.getParameter(&quot;description&quot;); // Retrieves
                                                                  // &lt;input
                                                                  // type=&quot;text&quot;
                                                                  // name=&quot;description&quot;&gt;
      Part filePart = request.getPart(&quot;file&quot;); // Retrieves &lt;input type=&quot;file&quot;
                                                  // name=&quot;file&quot;&gt;
      String fileName = Paths.get(filePart.getSubmittedFileName())
              .getFileName().toString(); // MSIE fix.
      InputStream fileContent = filePart.getInputStream();
      // ... (do your job here)
  }
  </code></pre>