有制作网页的高手没?求教
本人对上传到网页的图片格式做了限制,就是是有jpg pmg gif的格式才能上传上去,但是不知道是哪里出了问题 现在做有图片都上传不了,下面是限制文件格式的代码,请高手帮忙看看是不是代码写错了!
''列出所有上传了的文件
for each formName in upload.objFile
set file=upload.file(formName)
''''限制文件格式
fileExt=lcase(right(file.filename,4))
Forum_upload="gif,jpg,jpeg,png"
Forumupload=split(Forum_upload,",")
for i=0 to ubound(Forumupload)
if fileEXT="."&trim(Forumupload(i)) then
uploadsuc=true
exit for
else
uploadsuc=false
end if
next
if uploadsuc=false then
response.write "<font size=2>文件格式限制[<a href=# onclick=history.go(-1)>请重新上传</a>]</font>"
response.end
end If
'''''''''''''''
if file.filesize>0 then