2GB upload limit for http uploads and very large forms - 100MB, 2GB (4GB)

ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP
Url replacer, IIS url rewrite Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object
 IISTracer, real-time IIS monitor
 Huge ASP upload - upload files with progress.
          Article 
          Member of  ScriptUtils 

2GB upload limit for http uploads and very large forms - 100MB, 2GB (4GB)

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.

Mozilla firefox

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"

Internet Explorer

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.

IIS, ASP, V6.0

      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.

  Other links for 2GB upload limit for http uploads and very large forms - 100MB, 2GB (4GB)

ScriptUtils

     Huge ASP upload is easy to use, hi-performance ASP file upload component with progress bar indicator. This component lets you upload multiple files with size up to 2GB to a disk or a database along with another form fields. Huge ASP file upload is a most featured upload component on a market with competitive price and a great performance.

     The software has also a free version of asp upload with progress, called Pure asp upload, written in plain VBS, without components (so you do not need to install anything on server).

     This installation package contains also ScriptUtilities library. Script Utilities lets you create hi-performance log files, works with binary data, you can download multiple files with zip/arj compression, work with INI files and much more with the ASP utility.

© 1996 – 2008 Antonin Foller, Motobit Software, help{at}pstruh.cz, help v. 2.20.24