Get form parameters from multipart request without getting the files

后端 未结 4 1017
暗喜
暗喜 2020-12-10 20:55

I\'m looking for a way to get the form parameters of a HTTP multi-part request in a Servlet-filter without uploading files (yet).

request.getParameterMap() returns e

4条回答
  •  情书的邮戳
    2020-12-10 21:39

    The Oreilly Servlets website has some sample code which you can download customise and use. This includes MultipartRequest which sounds like it does what you require, it un-boxes a multipart request and allows access to the parameters and the files separately.

提交回复
热议问题