upload.htm
<html>
<body>
<h3>文件上传演示</h3>
<form method="post" enctype="multipart/form-data" action="upload.asp">
<input type="file" size="40" name="file1"><br>
<input type="file" size="40" name="file2"><br>
<input type="file" size="40" name="file3"><br>
<input type=submit value="上传">
</form>
</body>
</html>
<html>
<body>
<h3>文件上传演示</h3>
<form method="post" enctype="multipart/form-data" action="upload.asp">
<input type="file" size="40" name="file1"><br>
<input type="file" size="40" name="file2"><br>
<input type="file" size="40" name="file3"><br>
<input type=submit value="上传">
</form>
</body>
</html>
upload.asp
<html>
<body>
<%
set upload = server.createobject("persits.upload")
count = upload.save(server.mappath("/"))
response.write(count & " 文件已上传到 " & server.mappath("/"))
%>
</body>
</html>
本文提供了一个简单的文件上传示例,包括HTML表单和ASP处理脚本。用户可通过表单选择多个文件并上传至服务器指定目录。
1453

被折叠的 条评论
为什么被折叠?



