📄 upb.asp
字号:
<!--#include FILE="UPC.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ok</title>
<style type="text/css">
<!--
.STYLE3 {
color: #CC0033;
font-size: 18px;
}
-->
</style>
</head>
<body>
<%
dim upload,file,formName,formPath,L,M,N,StuNo
set upload=new upload_5xSoft ''建立上传对象
formPath=upload.form("filepath") ''在目录后加(/)
if right(formPath,1)<>"/" then formPath=formPath&"/"
for each formName in upload.file ''列出所有上传了的文件
set file=upload.file(formName) ''生成一个文件对象
if file.filesize<100 then
response.write "<font size=2>请先选择你要上传的文件 [ <a href=# onclick=history.go(-1)>重新上传</a> ]</font>"
response.end
end if
Excelname=file.FileName
if file.FileSize>0 then ''如果 FileSize > 0 说明有文件数据
file.SaveAs Server.mappath(file.FileName) ''保存文件
end if
set file=nothing
next
set upload=nothing
ErrInfo = "UPD.asp?Excelname=" & Excelname
Response.Redirect (ErrInfo)
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -