现在的位置: 首页 > 综合 > 正文

ASPUpload文件上传组件的用法

2014年03月12日 ⁄ 综合 ⁄ 共 468字 ⁄ 字号 评论关闭
 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>

抱歉!评论已关闭.