SoFunction
Updated on 2025-04-05

Use simple code to upload files


The code is as follows, you can refer to it
(resin1.2)--〉

<form action="" method="POST"
      enctype="multipart/form-data">
<input type="file" name="file"><br>
<input type="submit">
</form>

<%
String fileName = ("file");
FileInputStream is = new FileInputStream(fileName);
int ch;
while ((ch = ()) >= 0)
  ((char) ch);
();
%>