after enctype=“multipart/form-data” request not working

后端 未结 4 2017
你的背包
你的背包 2021-01-13 09:40

public class Relay extends HttpServlet {   
    @Override
    public void service(HttpServletRequest request, HttpServletResponse response)
    throws Servl         


        
4条回答
  •  醉酒成梦
    2021-01-13 10:06

    Parameters encoded with multipart/form-data are sent in POST body - not as regular request parameters, therefore can't be read using request.getParamter(...).

    Check out Commons file upload package for multipart requests processing.

提交回复
热议问题