对象不支持此属性或方法: 'file'
报错
Microsoft VBScript 运行时错误 错误 '800a01b6'
对象不支持此属性或方法: 'file'
不知道怎么回事,请解答 谢谢!!
<%
nowtime=now()
TimePath = year(nowtime) & "-" & month(nowtime) & "-" & day(nowtime)
Set fso = CreateObject("Scripting.FileSystemObject")
mapath=server.MapPath("../CompanyUpload/Product/")&"\"&TimePath
mulu=fso.FolderExists(mapath) '判断是否有今天的文件夹
if mulu=false then
fso.CreateFolder mapath
end if
dim upload,file,formName,formPath,iCount,fileext,filename
Domain=Request.ServerVariables("SERVER_NAME")
soFilePath=Request.ServerVariables("PATH_INFO")
soFilePath=lcase(left(soFilePath,instrRev(soFilePath,"/")))
sowinpath="http://"&Domain&soFilePath
set upload=new upload_5xSoft
formPath="../CompanyUpload/Product/"&TimePath&"/"
iCount=0
'for each formName in upload.file ''列出所有上传了的文件
month1=month(now)
if Month1<10 then Month1="0"&Month1
day1=day(now)
if day1<10 then day1="0"&day1
hour1=hour(now)
if hour1<10 then hour1="0"&hour1
minute1=minute(now)
if minute1<10 then minute1="0"&minute1
second1=second(now)
if second1<10 then second1="0"&second1
FileName=Year(now)&Month1&Day1&Hour1&Minute1&Second1&"-"&iCount
''就是这报错 不知道怎么回事!
''就是这报错 不知道怎么回事! set file=upload.file(formName) ''就是这报错 不知道怎么回事!
''就是这报错 不知道怎么回事!
FileExt = lcase(right(file.FileName,3))
FindFile=false