Managing file uploads in JSP/Servlets

后端 未结 3 602
陌清茗
陌清茗 2021-01-07 01:39

Once again a very beginner-ish question, but here I go:

I would like to use a servlet or similar to copy an uploaded file (from an html file select) to a permanent l

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-07 01:48

    The Servlet API has no way to extract the file from the POST (PUT?) data.

    Just like Vincent said, Apache commons FileUpload is the best free way to do this.

    You might also consider using a signed applet if you don't want to use the Apache libs.

提交回复
热议问题