上传巨大的文件大小:“页面无法显示”浏览器错误 [英] Upload huge file size: "The page cannot be displayed" browser error

查看:117
本文介绍了上传巨大的文件大小:“页面无法显示”浏览器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Web应用程序中有一个上传文件操作。 UploadForm.jsp

是表单,

和UploadAction.jsp是表单处理。网络服务器是

Websphere。

//UploadForm.jsp

< FORM NAME =" InputForm" ACTION =" UploadAction.jsp" METHOD =POST

enctype = multipart / form-data>

< input type =" file" name =" fileName">

//等...

< / FORM>


部署后应用程序到Web服务器,如果我上传一个小的

文件大小,那很好。

但是如果我上传的文件大小超过10MB,那就不行了甚至可以上传到
到UploadAction.jsp。

30秒后,它出现错误页面无法显示显示在

的网络浏览器上。

甚至无法访问UploadAction.jsp。但同一台机器上的UploadForm.jsp和

UnploadAction.jsp都是




没有问题。

我现在没有任何提示。任何想法?

请指教。谢谢!!

I have an upload file operation in the web application. UploadForm.jsp
is the form,
and UploadAction.jsp is the form processing. The web server is
Websphere.

//UploadForm.jsp
<FORM NAME="InputForm" ACTION="UploadAction.jsp" METHOD="POST"
enctype=multipart/form-data>
<input type="file" name="fileName">
//etc ...
</FORM>

After I deploy the application to the web server, if I upload a small
file size, it is fine.
But if I upload a huge file size more than 10MB, then it cannot even go
to UploadAction.jsp.
After 30 seconds, it has error "The page cannot be displayed" shown on
the web browser.
It cannot even go to UploadAction.jsp. But both UploadForm.jsp and
UnploadAction.jsp are
in the same machine.

Interestingly, if I test in local machine, I can upload any file size
without problem.
I don''t have any hints now. any ideas?
please advise. thanks!!

推荐答案

< jr ******** @ hotmail.com>在留言中写道

news:11 ********************** @ f14g2000cwb.googlegr oups.com ......

[...]
<jr********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
[...]
30秒后,它出现错误页面无法显示在网页浏览器上显示。
After 30 seconds, it has error "The page cannot be displayed" shown on
the web browser.



[...]

什么浏览器说的?如果您正在使用IE,那么要么获得一个真正的浏览器

或关闭友好的错误消息,并返回一个真正的错误

消息。否则,请查看您的日志并找到真正的错误消息。


[...]
What browser says that? If you''re using IE, then either get a real browser
or turn off the "friendly error messages", and come back with a real error
message. Otherwise, look at your logs and find the real error message.


是。当页面

到期时,这是典型的Microsoft Internet Explorer消息。它可能试图重定向到某个地方。也许回来了,​​所以你可以再次发送
吗?


无论如何,这是一个探险家的问题。如果您创建了给出

错误的页面,那么您应该更改它以便您不必返回

历史记录而是执行以下操作:


document.location =" new_url.html";


Hogne T.
Yes. This is a typical Microsoft Internet Explorer message when the page
"expires". It probably tries to redirect to somewhere. Perhaps back so you
can send anew?

Anyhow, this is an explorer issue. If you made the page that gives the
error, then you should change it so that you do not have to go back in
history but rather do a:

document.location = "new_url.html";

Hogne T.


< JR ******** @ hotmail.com>在消息中写道

news:11 ********************** @ f14g2000cwb.googlegr oups.com ...
<jr********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
我在Web应用程序中有一个上传文件操作。 UploadForm.jsp
是表单,
和UploadAction.jsp是表单处理。 Web服务器是Websphere。

// @pploadForm.jsp
< FORM NAME =" InputForm" ACTION =" UploadAction.jsp" METHOD =POST
enctype = multipart / form-data>
< input type =" file" name =" fileName">
//等...
< / FORM>

我将应用程序部署到Web服务器后,如果我上传了一个小的
文件大小,很好。
但如果我上传的文件大小超过10MB,那么它甚至无法上传到UploadAction.jsp。
30秒后,它有错误页面无法显示在网络浏览器上显示。
甚至无法访问UploadAction.jsp。但是同一台机器上的UploadForm.jsp和
UnploadAction.jsp都是

有趣的是,如果我在本地机器上测试,我可以上传任何文件大小
没有问题。
我现在没有任何提示。有什么想法吗?
请指教。谢谢!!
I have an upload file operation in the web application. UploadForm.jsp
is the form,
and UploadAction.jsp is the form processing. The web server is
Websphere.

//UploadForm.jsp
<FORM NAME="InputForm" ACTION="UploadAction.jsp" METHOD="POST"
enctype=multipart/form-data>
<input type="file" name="fileName">
//etc ...
</FORM>

After I deploy the application to the web server, if I upload a small
file size, it is fine.
But if I upload a huge file size more than 10MB, then it cannot even go
to UploadAction.jsp.
After 30 seconds, it has error "The page cannot be displayed" shown on
the web browser.
It cannot even go to UploadAction.jsp. But both UploadForm.jsp and
UnploadAction.jsp are
in the same machine.

Interestingly, if I test in local machine, I can upload any file size
without problem.
I don''t have any hints now. any ideas?
please advise. thanks!!




我对此也很好奇(只是写了一个上传多部分处理程序/过滤器

for HttpRequest) - 无论如何,听起来很烦人。我发现了一篇关于如何在客户端上更改它的文章,但让你的客户做到这一点听起来并不合理。

现实:

---

加载页面时,IE启动计时器。如果在超时结束时页面未完全加载,则会收到错误消息并且页面停止加载。


IE中的默认超时4.0 SP2和IE 5.x是5分钟。要更改

超时,请使用Regedt32导航至:

HKEY_CURRENT_USER \Software \ Microoft \ Windows \Curre ntVersion \Internet

设置


在编辑菜单上,添加值名称ReceiveTimeout,作为类型REG_DWORD。在

DWORD编辑器中,设置十进制基数。输入超时(以毫秒为单位)。


示例:要设置6分钟超时,请输入360000(6分钟* 60

秒/分钟* 1000毫秒/秒)。


您必须关闭并重新启动计算机才能使此更改生效。


---

直接链接: http://www.jsiinc。 com / SUBD / tip1900 / rh1937.htm



I was curious about this too (just wrote an upload multi-part handler/filter
for HttpRequest) - anyhow, sounds annoying. I found an article on how to
change it on the client, but getting your clients to do this doesn''t sound
realistic:

---
When loading a page, IE starts a timer. If the page is not fully loaded at
the end of the timeout, you get an error message and the page stops loading.

The default timeout in IE 4.0 SP2, and IE 5.x is 5 minutes. To alter the
timeout, use Regedt32 to navigate to:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet
Settings

On the Edit menu, Add Value name ReceiveTimeout, as a type REG_DWORD. In the
DWORD Editor, set the Decimal Radix. Enter the timeout in milliseconds.

Example: To set a 6 minute timeout, enter 360000 (6 minutes * 60
Seconds/Minute * 1000 Milliseconds/Second).

You must shutdown and restart your computer for this change to take effect.

---

Direct Link: http://www.jsiinc.com/SUBD/tip1900/rh1937.htm


这篇关于上传巨大的文件大小:“页面无法显示”浏览器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆