The following article explains how to use the ASPUpload component within your website.
ASP Upload Component is ActiveX component designed to ease access to multipart/form-data received from client's browser when developing Active Server Pages applications. With this component installed you can access multiple file uploads and other form data just the way it is done with Request object. To use ASPUpload you will need to create 2 pages: a form page and an action page.
The form page, form.html in this example, will contain a standard html form.
<HTML>
<BODY BGCOLOR="#AB453F">
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="actionpage.asp">
<INPUT TYPE=FILE SIZE=60 NAME="FILE1"><BR>
<INPUT TYPE=FILE SIZE=60 NAME="FILE2"><BR>
<INPUT TYPE=FILE SIZE=60 NAME="FILE3"><BR>
<INPUT TYPE=SUBMIT VALUE="Upload!">
</FORM>
</BODY>
</HTML>
The action page, actionpage.asp will contain the ASPUpload scripting in this example,
<HTML>
<BODY>
<% Set Upload = Server.CreateObject ("Persits.Upload.1")
Count = Upload.SaveVirtual ("virtual_directory_name") %>
<% = Count %> files uploaded.
</BODY>
</HTML>
Feature of ASP Upload component is as under.
- Compatibility with IIS 4, IIS 5 (Windows NT, 2000, XP), and PWS
- Access to multiple file posts from single form
- Access to values of all inputs of the form posted
- Best performance on the market
- Low server resources consumption
- Best choice for scalable applications with huge file uploads
- Configurable buffer size
- Configurable upload size limit
- Configurable upload size limit disabled in trial version
- Full version includes C++ source codes