asp 上传下载的代码?

来源:百度知道 编辑:UC知道 时间:2024/05/22 02:52:26
化境的我看了 没看明白怎么用。有用过的能不能说说怎么用?或者有没有更好的方法

我做过很多asp上传下载的东西,很好做的,简单,要是有兴趣的话,可以登陆我的博客给我留言,然后我给你把代码发给你

upfile.asp
----------------------------------------------
<%OPTION EXPLICIT%>
<%Server.ScriptTimeOut=5000%>
<!--#include FILE="upload_5xsoft.inc"-->
<html>
<head>
<title>文件上传</title>
</head>
<body>
<br>化境文件上传!<hr size=1 noshadow width=300 align=left><br><br>
<%
dim upload,file,formName,formPath,iCount
set upload=new upload_5xsoft ''建立上传对象

response.write upload.Version&"<br><br>" ''显示上传类的版本

if upload.form("filepath")="" then ''得到上传目录
HtmEnd "请输入要上传至的目录!"
set upload=nothing
response.end
else
formPath=upload.form("filepath")
''在目录后加(/)
if right(formPath,1)<>"/" then formPath=formP