ASPUpload文件上传组件的用法
作者:佚名 | 来源:网络 | 添加时间:2008-03-27 10:54:25 | 人气:369
ASPUpload文件上传组件的用法
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>
upload.asp
<html>
<body>
<%
set upload = server.createobject("persits.upload")
count = upload.save(server.mappath("/"))
response.write(count & " 文件已上传到 " & server.mappath("/"))
%>
</body>
</html>
更详细的应用案例,请查看ASPUpload组件自带的演示样例。点击这里下载ASPUpload组件,安装后有详细的说明及演示样例。
责任编辑:冬天来了