if right(File.FileName,3)<>"jpg" then response.write "<script language='javascript'>" & chr(13) response.write "alert('文件“"+File.FileName+"”的格式本系统不支持!');" & Chr(13) response.write "window.document.location.href='javascript:history.back(-1);';"&Chr(13) response.write "</script>" & Chr(13) Response.end end if
if file.FileSize>100000 then''如果 FileSize > 0 说明有文件数据 response.write "<script language='javascript'>" & chr(13) response.write "alert('文件“"+File.FileName+"”所点空间过大!');" & Chr(13) response.write "window.document.location.href='javascript:history.back(-1);';"&Chr(13) response.write "</script>" & Chr(13) Response.end
end if