上传大文件 [英] Uploading Large Files

查看:97
本文介绍了上传大文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用纯ASP上传脚本来处理文件上传。我们运行IIS6和

我知道元数据库中的AspMaxRequestEntityAllowed变量。我提高了

这个允许文件大小最大,它适用于过去的几个

个月。在过去的几天里,我们似乎突然间出现了问题。


上传适用于任何高达2mb左右的任何东西(或所以看起来好像。


当上传大约20mb(10x2mb文件)时,我收到以下错误

(从firefox抛出)。我尝试更改Response.Expires,

Server.ScriptTimeout,以及

IIS中网站的连接超时设置。


连接中断

页面加载时重置了与服务器的连接。

协商连接时网络链接中断。请再次尝试



上传大约2-10mb的文件时,我收到ASP抛出的错误。

这个错误通常意味着AspMaxRequestEntityAllowed需要增加,但是因为我已经增加了它可以去的高度,所以我很尴尬。


请求对象错误''ASP 0101:80004005''

意外错误

/scripts/update/ShadowUploader.asp ,第58行

函数返回|。


第58行:strBinData = Request.BinaryRead(iBytesCount)

I''m using a pure ASP upload script to handle file uploading. We run IIS6 and
I''m aware of the AspMaxRequestEntityAllowed variable in the metabase. I upped
this to allow the file size maximum and it was working for the past couple
months. Now all of a sudden in the past couple of days we are seeming to have
problems.

The upload works fine for anything up to around 2mb (or so it seems).

When uploading about 20mb worth (10x2mb files), I get the following error
(thrown from firefox). I tried changing Response.Expires,
Server.ScriptTimeout, and the connection timeout setting for the website in
IIS.

Connection Interrupted
The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please try
again.

When uploading about 2-10mb worth of files, I get an error thrown by ASP.
The error typically just means that AspMaxRequestEntityAllowed needs to be
increased, but since I''ve already increased it as high as it can go, I''m
really confused.

Request object error ''ASP 0101 : 80004005''
Unexpected error
/scripts/update/ShadowUploader.asp, line 58
The function returned |.

Line 58: strBinData = Request.BinaryRead(iBytesCount)

推荐答案

"它在过去的几个月里都在工作。

如果代码以前工作过,并且没有进行任何代码更改,那么问题必须是代码以外的其他问题。


" it was working for the past couple months."
If the code was working before, and no code changes have been made, then the problem must be something other than the code.



我的想法完全正确。我没有必要说它是代码中的东西我需要修复b $ b。我正在寻找任何可能出错的建议。
My thoughts exactly. I didn''t necessarily say it was something in the code I
needed to fix. I''m looking for suggestions on anything that could be wrong.


http://classicasp.aspfaq.com/general...01-errors.html


丹 < Da*@discussions.microsoft.com在留言新闻中写道:D2 ********************************** @ microsof t.com ...
http://classicasp.aspfaq.com/general...01-errors.html

"Dan" <Da*@discussions.microsoft.comwrote in message news:D2**********************************@microsof t.com...

我的想法完全正确。我没有必要说它是代码中的东西我需要修复b $ b。我正在寻找任何可能出错的建议。
My thoughts exactly. I didn''t necessarily say it was something in the code I
needed to fix. I''m looking for suggestions on anything that could be wrong.



这篇关于上传大文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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