<html> <head> <meta charset="utf-8"> <title>上传图片</title> </head> <body> <form action="upload.do" method="post" enctype="multipart/form-data"> <input type="file" name="file" /> <input type="submit" value="Submit" /></form> </body> </html>
<html>
<body>
<form enctype="multipart/form-data" action="http://127.0.0.1:8080/photoUpload" method="POST">
<input type="file" name="file" />
<input type="submit" value="submit"/>
</form>
</body>
</html>