MOTOBIT.COM - ASP upload, IIS utility FAQ for Huge ASP file upload and scriptUtilities Article

Member of  ScriptUtils | Changes | Purchase | Download

FAQ for Huge ASP file upload and scriptUtilities

Frequently asked questions about ScriptUtilities, Pure-ASP and Huge-ASP upload functionality.

Still expire after full installation?
Install/deploy/distribute software without exe setup?

Problem with upload of big files, cannot upload more than xxxkB/MB?
Upload without user interaction?
Expire of evaluation version?

Upload progress bar does not work.

Solution for several problems with upload progress bar.

Huge-ASP or Pure-ASP file upload?

What version of the upload object should I use? What are differences between Huge ASP upload and Pure ASP upload?

maxRequestLength - Maximum request length exceeded - IIS6

Describes some problems with IIS6 and upload of large files.

application/x-www-form-urlencoded and multipart/form-data forms?

How to handle several types of source form encoding using HugeASP upload and ASPForm object.

Upload - Problem with upload speed?

Some clients have problem with upload speed. This FAQ has a short info and performance test comparisons to reveal the problem.

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

       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.

Expire of evaluation version?

      Q: Actually I download your 60 days free evaluation version ( Huge-ASP upload, ScriptUtilities library …..) from your site. I downloaded this software some where in the month of June’02. I worked few days to check the need of our software. When I have written very small program to check it is working, then it says:

ScriptUtils.ASPForm(0x80040112)
Evalution version of Huge-ASP upload was expired.

Actually we did’nt even check all features of your software for our product. And now it is not working. Please help me so that we can check more features of your software with our requirements.

       ScriptUtilities and Huge-ASP upload evaluation version contains simple 60-day expiration mechanism. Please go to registry, HKEY_LOCAL_MACHINE\SOFTWARE\Pstruh key and delete License key.
       Remember that the software is NOT a freeware (please see License page for ASP file upload and ScriptUtilities), you can use this feature to get more evaluation time.

Still expire after full installation?

      Q: We've downloaded & installed the full version as instructed (first removing the old version), but we are still getting a message saying
'ScriptUtils.ASPForm (0x80040112)
Evaluation version of Huge-ASP upload was expired.' can you advise please?

       This problem cohere with DLL locking and caching. ASPFORM.DLL and SCPTUTL.DLL are locked by dllhost.exe, ASP process. You can avoid this problem:
1. Stop w3svc service
2. Install full version of ScriptUtilities and Huge-ASP upload
3. Start w3svc service

Upload without user interaction?

      Q: The program looks very nice. I am only wondering if the following is possible. Is it possible to upload a file without user interaction? So that the user doesn't need to select the file to upload.
      I want this to be an automatic process. I know the files that need to be uploaded, so when I open the upload.asp page, I want the upload progress be executed automatically. If this is possible, where can I find it in your help?

      This functionality has some of very old versions of internet browsers. There is a big security problem with such function - imagine what you can to do on a client computer with such security leak ...
      So this is not possible in standard HTML and JavaScript/VBScript now - because of security reasons. You cannot access files on client computer in safe-scriptable code, of course.

      We can use some work-around for such work, of course - using unsafe code - Scripting and ADODB objects. I wrote a short article with full VBS source code at http://www.motobit.com/tips/detpg_uploadvbsie.htm.

Upload - to database, or not to database?

Performance tests of several methods to store files on server-side. Save file to disk, store to database.

Problem with upload of big files?

      Q: We want to purchase your product for uploading files to server. But we want to test it for larger files up to 10 -15 MB but your 60 day trial version allows us to upload only below 1MB from our web browses to our web server. I believe your ASP upload is a very good tool and we are keenly interested in buying it. SO please let me know how we can test it for more than 1 Mb. 

       Trial (evaluation) version of Huge-ASP upload has no functionality limit - except 60 day evaluation period. Please see ScriptUtils.ASPForm.Upload - Files and forms with large/huge size. article. The article contains info about important settings if you want to upload large files (or if you want to accept uploads on slow internet connections). The problem is probably with short ScriptTimeout or small free space on a temporary drive.
       There is also a second kind of problems - proxy server between client and server. Such proxy can limit the size of post data - and the limit is usually set to 1MB.
      

Install Huge ASP upload without exe setup.

      Question: Can I install Huge-ASP file upload without scptutl.exe file? How can I redistribute upload and scriptutilities?

     ScriptUtilities and Huge-ASP upload package (scptutl.exe) contains samples, help and two main DLLs - ASPForm.DLL and ScptUtl.DLL. ASPForm.DLL contains Huge ASP file upload component (ASPForm, FormFields, FormField and FormParser classes), ScptUtl.DLL contains ScriptUtilities classes (Kernel, ByteArray, Process, Thread, Advapi, INIFile, ZLib and LogFile).
     You will only need these two .DLL files. You can copy the DLLs to your server and register them by regsvr32.

     You can get these files by 'ScptUtl.exe /T:c:\temp /C' command.

Cannot find server or DNS Error, page cannot be displayed when uploading files?

Some common answers to handle upload data with size over allowed limit. Possible solutions, problematic situations, communication between client browser (IE and similar) and IIS server.

Other links for FAQ for Huge ASP file upload and scriptUtilities article

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 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz