Jacob Gilley's Pure ASP File Upload is an effective, free method for uploading user files to your server. Although well implemented, I found that the file I/O needed improvement. Concatenation is quite slow in VBScript and it was actually faster to write a single byte at a time to the disk than to concatenate the file prior to saving.
Here Robbert Nix's improved concatenation algorithm comes to the rescue. I stumbled upon this algorithm when searching for performance enhancements in VBScript. Essentially Nix's code allows Gilley's Pure ASP File Upload to return to concatenation as a viable method for preparing the file prior to saving.
Two files are included with this implementation: upload.asp
and buffering.inc.
These files are meant to be incorporated with the existing distribution
for Gilley's Pure ASP File Upload. The upload.asp file
replaces the existing version and the include file buffering.inc
is used to improve upload time.
Note: if you replace your existing version of upload.asp you must also copy buffering.inc to the same directory! No changes in existing upload pages are required to take advantage of this upgrade.
Gilley's Pure ASP File Upload files can be found here: ASP Upload (Original Archive) - necessary files.
--Will Do Many Things ... Well wbic16@hotmail.com