无惧上传为什么超出文件大小限制时,上传页面的iframe地方没有提示??

lcfzgb 2005-11-29 02:37:53
<tr>
<td height=21 align="right" class="forumrow"> <font size="2" face="宋体">
上载附件:</font></td>
<td height=21 width="82%" colspan="3" class="forumrow"> <iframe name="fj1" frameborder=0 width=100% height=24 scrolling=no src=xinwen_fjupload.asp></iframe>
</td>
</tr>
在iframe调用的文件中

<form name="form" method="post" action="xinwen_savefj.asp" enctype="multipart/form-data">
<table width="100%" border=0 cellspacing=0 cellpadding=0 bgcolor=#dee5fa>
<tr><td class=tablebody2 valign=top height=30>
<input type="hidden" name="filepath" value="../upload/file/">

<input type="file" name="file1">
<input type="submit" name="Submit" value="上传" onclick="fname.value=file1.value,parent.document.forms[0].Submit.disabled=true">
</td></tr>
</table>
</form>
在xinwen_savefj.asp有如此的代码:

upload.GetDate (5120*1024)
if upload.err > 0 then
select case upload.err
case 1
Response.Write "请先选择你要上传的文件 [ <a href=# onclick=history.go(-1)>重新上传</a> ]"
case 2
Response.Write "文件大小超过了限制 5M [ <a href=# onclick=history.go(-1)>重新上传</a> ]"
end select
exit sub
else ............
但是,当文件大小超过后,并没有提示!
请问是怎么回事?
...全文
162 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lcfzgb 2005-11-30
  • 打赏
  • 举报
回复
iframe处返回了该信息


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>

<head>
<style>
a:link {font:9pt/12pt 宋体, MS Song; color:red}
a:visited {font:9pt/12pt 宋体, MS Song; color:#4e4e4e}
</style>
<meta HTTP-EQUIV="Content-Type" Content="text-html; charset=gb2312">
<title>没有可以显示的页面 </title>
</head>

<body bgcolor="white">

<table width="400" cellpadding="3" cellspacing="5">
<tr>
<td id="tableProps" valign="top" align="left"><img id="pagerrorImg" SRC="pagerror.gif"
width="25" height="33"></td>
<td id="tablePropsWidth" align="left" valign="middle" width="360"><h1 id="errorText"
style="COLOR: black; FONT: 13pt/26pt 宋体, MS Song">取消操作</h1>
</td>
</tr>
<tr>
<td id="tablePropsWidth" width="400" colspan="2"><font
style="COLOR: black; FONT: 9pt/12pt 宋体, MS Song">Internet Explorer 不能链接到您请求的网页。此页可能暂时不可用。</font></td>
</tr>
<tr>
<td id="tablePropsWidth" width="400" colspan="2"><font id="LID1"
style="COLOR: black; FONT: 9pt/12pt 宋体, MS Song"><hr color="#C0C0C0" noshade>
<p id="LID2">请尝试以下操作:</p><ul>
<li id="instructionsText2">单击<a xhref="javascript:location.reload()" target="_self"><img border=0 src="refresh.gif" width="13" height="16"
alt="refresh.gif (82 字节)" align="middle"></a><a xhref="javascript:location.reload()" target="_self">刷新</a>按钮,或以后再试。<br>
</li>
<li id="instructionsText3">如果您以前查看过该页,现在要查看计算机上存储的内容,请单击<b>文件</b>,然后单击<b>脱机工作</b>。<br>
</li>
<li id="instructionsText4">要获得有关使用 Internet Explorer 脱机浏览的信息,请单击<b>帮助</b>菜单,然后单击<b>目录和索引</b>。<br>
</li>
</ul>
<p><br>
</p>
<h2 id="ietext" style="font:9pt/12pt 宋体; color:black">Internet Explorer </h2>
</font></td>
</tr>
</table>
</body>
</html>
lcfzgb 2005-11-30
  • 打赏
  • 举报
回复
有没有遇到这个问题的?
lcfzgb 2005-11-29
  • 打赏
  • 举报
回复
怎么回事呢?

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧