想要一个无组件上传程序

来源:百度知道 编辑:UC知道 时间:2024/05/28 09:01:33
上传的时候可以自由选择上传路径的,不要在ASP文件里固定设定的那种,谁知道告诉我一下~ 谢谢
风声无组件上传类 2.0 那个我知道

上传时候不能选择要上传到服务器的路径

<input type=file name=file1> 文件域

<input type=text name=path1> 文件路径

set upload=new 5x_soft
set file=upload.file("file1")

savepath=Trim(upload.form("path1"))
'1=====================================
savepath=server.mappath("./"&savepath) 指定网站根目录下的子文件夹
'2=====================================
'绝对路径 如“savepath="C:\mysite\upload\"”
'======================================
if file.filesize<512000 and ... then
file.saveas savepath&"\"&file.filename

风声无组件上传类 2.0
这个非常好用,你搜索一下,很多下载地址的。

怎么不能,他有一个属性是设置上传到服务器路径的。
SavePath