Get form parameters from multipart request without getting the files

后端 未结 4 1021
暗喜
暗喜 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:26

    Commons FileUpload provides a mechanism to read request params from a multipart form upload.

    There's a really great example of how to grab the request parameters here:

    How to upload files to server using JSP/Servlet?

提交回复
热议问题