upload.jsp 580 B

12345678910111213141516171819202122232425
  1. <%--
  2. Created by IntelliJ IDEA.
  3. User: lc
  4. Date: 2023-03-26
  5. Time: 下午 2:52
  6. To change this template use File | Settings | File Templates.
  7. --%>
  8. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  9. <html>
  10. <head>
  11. <title>Title</title>
  12. </head>
  13. <body>
  14. <div>
  15. <form enctype="multipart/form-data"
  16. action="<%=request.getContextPath()%>/uploadFile"
  17. method="post" style="width: 400px; margin: 0 auto" >
  18. <input type="file" name="file" /> <br />
  19. <input type="submit" value=" 点我上传 ">
  20. </form>
  21. </div>
  22. </body>
  23. </html>