跪求高手帮忙修改一段ASP上传源代码,虽然很简单,但小弟确实玩不来
下面是需要修改的上传代码,小弟就是像把那多余的几句话去掉,上传成功后只显示“您所提交的文件已成功,我们在工作时间48小时内处理完毕,谢谢!”跪求高手们帮帮小弟,谢谢了!!...
下面是需要修改的上传代码,小弟就是像把那多余的几句话去掉,上传成功后只显示“您所提交的文件已成功,我们在工作时间48小时内处理完毕,谢谢!”跪求高手们帮帮小弟,谢谢了!!!
<!-- #include file="Upload.asp" -->
<%
Server.ScriptTimeout = 900
formPath = "UploadFiles/"
Set upload= New DoteyUpload
Upload.SaveTo(formPath) '将文件根据其文件名统一保存在某路径下
If upload.ErrMsg = "" then
Response.Write ("列出所有form数据:<BR>")
For each formName in upload.Form ''列出所有form数据
Response.write formName & "=" & upload.Form(formName) & "<br>"
next
Response.Write ("<BR><BR>列出所有上传了的文件:<BR>")
For Each formName In upload.Files ''列出所有上传了的文件
Set file = upload.Files(formName) ''生成一个文件对象
response.write file.FilePath & " (" & file.FileType & "/" & file.FileSize/1024 &"K) => <a target=_blank href='" & formPath & File.FileName & "'>" & formPath & File.FileName & "</a> 您所提交的文件已成功,我们在工作时间48小时内处理完毕,谢谢!<br>"
response.write "<br /><BR>"
Set file=nothing
Next
Else
Response.Write("上传过程中出现错误:<br>" & Upload.ErrMsg)
End If
Set upload=nothing
%> 展开
<!-- #include file="Upload.asp" -->
<%
Server.ScriptTimeout = 900
formPath = "UploadFiles/"
Set upload= New DoteyUpload
Upload.SaveTo(formPath) '将文件根据其文件名统一保存在某路径下
If upload.ErrMsg = "" then
Response.Write ("列出所有form数据:<BR>")
For each formName in upload.Form ''列出所有form数据
Response.write formName & "=" & upload.Form(formName) & "<br>"
next
Response.Write ("<BR><BR>列出所有上传了的文件:<BR>")
For Each formName In upload.Files ''列出所有上传了的文件
Set file = upload.Files(formName) ''生成一个文件对象
response.write file.FilePath & " (" & file.FileType & "/" & file.FileSize/1024 &"K) => <a target=_blank href='" & formPath & File.FileName & "'>" & formPath & File.FileName & "</a> 您所提交的文件已成功,我们在工作时间48小时内处理完毕,谢谢!<br>"
response.write "<br /><BR>"
Set file=nothing
Next
Else
Response.Write("上传过程中出现错误:<br>" & Upload.ErrMsg)
End If
Set upload=nothing
%> 展开
3个回答
展开全部
!-- #include file="Upload.asp" -->
<%
Server.ScriptTimeout = 900
formPath = "UploadFiles/"
Set upload= New DoteyUpload
Upload.SaveTo(formPath) '将文件根据其文件名统一保存在某路径下
If upload.ErrMsg = "" then
Response.Write ("列出所有form数据:<BR>")
For each formName in upload.Form ''列出所有form数据
Response.write formName & "=" & upload.Form(formName) & "<br>"
next
Response.Write ("<BR><BR>列出所有上传了的文件:<BR>")
For Each formName In upload.Files ''列出所有上传了的文件
Set file = upload.Files(formName) ''生成一个文件对象
response.write file.FilePath & " (" & file.FileType & "/" & file.FileSize/1024 &"K) => <a target=_blank href='" & formPath & File.FileName & "'>" & formPath & File.FileName response.write "<br /><BR>"
Set file=nothing
Next
Else
Response.Write("上传过程中出现错误:<br>" & Upload.ErrMsg)
End If
Set upload=nothing
%>
<%
Server.ScriptTimeout = 900
formPath = "UploadFiles/"
Set upload= New DoteyUpload
Upload.SaveTo(formPath) '将文件根据其文件名统一保存在某路径下
If upload.ErrMsg = "" then
Response.Write ("列出所有form数据:<BR>")
For each formName in upload.Form ''列出所有form数据
Response.write formName & "=" & upload.Form(formName) & "<br>"
next
Response.Write ("<BR><BR>列出所有上传了的文件:<BR>")
For Each formName In upload.Files ''列出所有上传了的文件
Set file = upload.Files(formName) ''生成一个文件对象
response.write file.FilePath & " (" & file.FileType & "/" & file.FileSize/1024 &"K) => <a target=_blank href='" & formPath & File.FileName & "'>" & formPath & File.FileName response.write "<br /><BR>"
Set file=nothing
Next
Else
Response.Write("上传过程中出现错误:<br>" & Upload.ErrMsg)
End If
Set upload=nothing
%>
展开全部
<!-- #include file="Upload.asp" -->
<%
Server.ScriptTimeout = 900
formPath = "UploadFiles/"
Set upload= New DoteyUpload
Upload.SaveTo(formPath) '将文件根据其文件名统一保存在某路径下
If upload.ErrMsg = "" then
response.write "您所提交的文件已成功,我们在工作时间48小时内处理完毕,谢谢!<br>"
Else
Response.Write("上传过程中出现错误:<br>" & Upload.ErrMsg)
End If
Set upload=nothing
%>
<%
Server.ScriptTimeout = 900
formPath = "UploadFiles/"
Set upload= New DoteyUpload
Upload.SaveTo(formPath) '将文件根据其文件名统一保存在某路径下
If upload.ErrMsg = "" then
response.write "您所提交的文件已成功,我们在工作时间48小时内处理完毕,谢谢!<br>"
Else
Response.Write("上传过程中出现错误:<br>" & Upload.ErrMsg)
End If
Set upload=nothing
%>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
!-- #include file="Upload.asp" -->
<%
Server.ScriptTimeout = 900
formPath = "UploadFiles/"
Set upload= New DoteyUpload
Upload.SaveTo(formPath) '将文件根据其文件名统一保存在某路径下
If upload.ErrMsg = "" then
Response.Write ("列出所有form数据:<BR>")
For each formName in upload.Form ''列出所有form数据
Response.write formName & "=" & upload.Form(formName) & "<br>"
next
Response.Write ("<BR><BR>列出所有上传了的文件:<BR>")
For Each formName In upload.Files ''列出所有上传了的文件
Set file = upload.Files(formName) ''生成一个文件对象
response.write file.FilePath & " (" & file.FileType & "/" & file.FileSize/1024 &"K) => <a target=_blank href='" & formPath & File.FileName & "'>" & formPath & File.FileName response.write "<br /><BR>"
Set file=nothing
Next
Else
Response.Write("上传过程中出现错误:<br>" & Upload.ErrMsg)
End If
Set upload=nothing
%>
<%
Server.ScriptTimeout = 900
formPath = "UploadFiles/"
Set upload= New DoteyUpload
Upload.SaveTo(formPath) '将文件根据其文件名统一保存在某路径下
If upload.ErrMsg = "" then
Response.Write ("列出所有form数据:<BR>")
For each formName in upload.Form ''列出所有form数据
Response.write formName & "=" & upload.Form(formName) & "<br>"
next
Response.Write ("<BR><BR>列出所有上传了的文件:<BR>")
For Each formName In upload.Files ''列出所有上传了的文件
Set file = upload.Files(formName) ''生成一个文件对象
response.write file.FilePath & " (" & file.FileType & "/" & file.FileSize/1024 &"K) => <a target=_blank href='" & formPath & File.FileName & "'>" & formPath & File.FileName response.write "<br /><BR>"
Set file=nothing
Next
Else
Response.Write("上传过程中出现错误:<br>" & Upload.ErrMsg)
End If
Set upload=nothing
%>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询