Introduction
A very frequent question regarding Active Server Pages is "how do I allow
a user to upload a file"? Unfortunately, the answer is not particularly
straight forward. Active Server Pages itself provides no standard functions,
and so you have to rely on either a custom ASP script or a third-party ActiveX
DLL.
There are a number of ASP script solutions around, however, due to the non-compiled
nature of ASP, combined with its fairly limited commands (even compared to VB),
these are extremely inefficient and server intensive. The second solution is
an ActiveX DLL. Components such as EZsite UpLoad are available as freeware,
however, without access to the source code you are limited in terms of flexibility.
Therefore, in this tutorial, we will cover all the necessary steps for creating
an ASP page, and a VB ActiveX component for use within your script to enable
a file to be uploaded.
|
Hosting Limitations You should be warned that, before we start, not all hosting packages
allow you to upload your own ActiveX components. If this is the case,
then unfortunately you will have to revert to a pure
ASP script.
|