My Oracle Support Banner

multipart/form-data Parameters Not Available Via GetParameterMap (Doc ID 1622651.1)

Last updated on APRIL 14, 2018

Applies to:

Oracle WebLogic Server - Version 12.1.1.0 to 12.1.2.0.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

Servlet 3.0 request.getParameterMap() method returns null value for multipart/form-data POST request.

 

test.html

<form method="POST" enctype="multipart/form-data" action="MultipartTest">
<input name="simpleInput" type="text" value="test1234"/><br/>
<button type="submit">Submit</button><br/>
</form>

 MultipartTest.java

public class MultipartTest extends HttpServlet {
  public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    ...
    Map paramMap = request.getParameterMap();
    out.println("request.getParameterMap()={" + paramMap + "}");
    ...
  }
}

 Output

request.getParameterMap()={}

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.