在JSP页面里,若是 type=file name=imagepath, 则死活没法将 request 转换为 multipartHttpServletRequest,ip
只要将name改成其余哪怕 aaa,立刻就OK 了。file