我上传文件时小的可以上传一超过二百K就会出错,我在上传提交页也没有设置文件上传大小,可是为什么会出错呢?
Request 对象 错误 'ASP 0104 : 80004005'
不允许操作
/admin/down/upload_5xsoft.inc,行 26
这个是提交页的代码.
<%Server.ScriptTimeOut=9999%>
<%sqlstr="dbq="+server.mappath("../../data_system/#$%%$%%%$#&%$#@#$.mdb"
+";driver=microsoft access driver (*.mdb);"
set conn=server.createobject("adodb.connection"
conn.open sqlstr%>
<!--#include FILE="upload_5xsoft.inc"-->
<link href="../../css/cnnetstars.css" rel="stylesheet" type="text/css">
<script>
parent.document.forms[0].Submit.disabled=false;
</script>
<link href="../../css/Admin_STYLE.CSS" rel="stylesheet" type="text/css">
<body bgcolor="#EAEAEA" leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" bgcolor="#EAEAEA"> <%
function makefilename(fname)
fname = now()
fname = replace(fname,"-",""
fname = replace(fname," ",""
fname = replace(fname,":",""
fname = replace(fname,"PM",""
fname = replace(fname,"AM",""
fname = replace(fname,"上午",""
fname = replace(fname,"下午",""
makefilename=fname
end function
set upload=new upload_5xSoft
set file=upload.file("file1"
path=server.mappath("../../soft"
fileExt=lcase(right(file.filename,4))
if fileEXT<>".pdf" and fileEXT<>".rar" and fileEXT<>"" then
response.write "<font size=2>文件格式不正确[ <a href=# onclick=history.go(-1)>重新上传</a> ]</font>"
response.end
end if
if right(path,1)<>"\" then path=path&"\"
url1=file.FileName
for x = len(url1) to 1 step -1
if mid(url1,x,1) = "." then
url1 = right(url1,(len(url1)-x))
exit for
end if
next
fname = makefilename(now())
picturename=fname&"."&url1
file.SaveAs path&picturename
imgpath=""&picturename&""
%>图片路径:<%=imgpath%> [文件上传成功]</td>
</tr>
</table>
<script language="javascript">
var str;
if(parent.document.forms[0].picname.value!=""
parent.document.forms[0].picname.value+="|"+"<%=picturename%>";
else
parent.document.forms[0].picname.value="<%=picturename%>";
str=parent.document.forms[0].main.value+'<%=picturename%>';
parent.document.forms[0].main.value=str;
</script>