FAQ for Huge ASP file upload and scriptUtilities | 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
| ||
| Article | |||
| Member of ScriptUtils |
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.
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.
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
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.
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.
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.