Real problems with very large posts, current internet browsers and Internet information server.
Q: Hi, is it possible to set the upload limit on Huge ASP to a file size greater than 2gb? 2gb is too small, we are needing to upload hi-res video files of 3.5gb at times.
HugeASP upload is designed to work with up to 2GB files. The reason for the limit is simple - current browsers does not support upload of bigger files than 2GB over internet and IIS6 also accepts only 2GB files, no more.
| Software | Versions | Upload limit |
| Internet explorer | All versions | 2GB-1 |
| Mozilla Firefox | All versions | 2GB-1 |
| IIS | 1-5 | 2GB-1 |
| IIS | 6 | 4GB-1 |
| ASP | All versions | 2GB-1 |
I tried several browsers to upload files over 2gb and the results are on this page.
Upload file over 2GB - you cannot post such file, Mozilla does not send request with bigger file to server
Upload two or more files with size summary size >2GB - Mozilla send such files, but http headers are funny:
POST /content-length-test.htm HTTP/1.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) Gecko/20060909 Firefox/1.5.0.7 Content-Type: multipart/form-data; boundary=---------------------------28146504217367 Content-Length: -1618952669
But IIS doesn't know what means "Content-Length: -1618952669" and it answers "Bad request"
The results with IE are similar - IE allows to post file over 2GB, but the http headers looks like in Mozilla:
POST /content-length-test.htm HTTP/1.1 Content-Type: multipart/form-data; boundary=---------------------------7d630d6400da UA-CPU: x86 User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; ) Content-Length: -107389343
Both major internet browsers simply count content-length of uploads in 32bit signed integer, so their results are unusable for very large uploads.
I prepared a simple test for IIS6 - POST with 30GB Content-Length:
POST /content-length-test.asp HTTP/1.1 Content-Type: multipart/form-data; boundary=--------------------------------08235985 Content-Length: 30000000000 User-Agent: Hammoun/1.0 (WinNT 5.2.3790;Service Pack 1)
And the IIS answer is next
HTTP/1.1 500 Internal Server Error Content-Type: text/html Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET
You can post up to 4294967295 bytes to IIS, but ASP request.totalbytes returns -1 for post size over 2GB. So the maximum useful limit in ASP is also 2GB.
© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz