风声ASP无组件上传 form("file_Err")报错


if Request.ServerVariables("REQUEST_METHOD") = "POST" then

dim up, fso, filePath
set fso = Server.CreateObject("Scripting.FileSystemObject")
filePath = year(date) & "-" & month(date) & "/" '使用 "年-月" 形式的目录
if not fso.FolderExists(Server.MapPath(UPLOAD_PATH & filePath)) then
fso.CreateFolder(Server.MapPath(UPLOAD_PATH & filePath))
end if

'开始上传
set up = new UploadClass
up.AutoSave = 0 '取无重复的服务器时间字符串为文件名自动保存文件
up.SavePath = UPLOAD_PATH & filePath
up.FileType = "rar/zip/doc/docx/wps"
up.MaxSize = 1024 * 1024 * 10  '最大 10M
up.Open()

if up.Error <> 0 or up.Form("file_Err") <> "" then
Response.Write "<script>alert('上传出错!');</script>"
Response.end
end if
end if

下面是Html代码

<form name="form" class="form" method="post" enctype="multipart/form-data" οnsubmit="return check(this);">
<ul>
<li class="field">
<div class="input">
<label for="email">上传简历:</label>
<input name="file" type="file" size="36" maxlength="50" class="file" /> <span style="color:#F00;"> * 支持.doc、.docx、.wps格式文件</span>
</div>
</li>
<li class="submit-field">
<div class="input clearfix"><input type="submit" value="提交" class="btn-submit" /><input type="reset" value="重置" class="btn-reset" /></div>
</li>
</ul>
</form>


检查出来了是因为 up.Form("file_Err") <> "" 这个地方出错了,可是不知道怎么导致的这里出错的

在线急等 分不多,全给了,谢谢了
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值