The Basic Technique

When uploading files using ASPUpload, you will need to use the following techniques on a SuperAccount web server.  Because of permissions, you will use the LogonUser Method to authenticate and the SaveVirtual, CopyVirtual commands to perform the file upload. 

Putting it Together

The following HTML would be in your web page that prompts the user for the file they want to upload.  

        UPLOAD.ASP

<HTML>
<BODY BGCOLOR="#FFFFFF">
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="UploadScript.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>

When the user selects a file and presses the "Upload!" button on this web page, it will call (in this example) the uploadscript.asp ASP page.  The Example is below:

UPLOADSCRIPT.ASP

<HTML>
<BODY>
<%
Set Upload = Server.CreateObject("Persits.Upload.1")
Upload.logonuser "", "username", "password"

Count = Upload.SaveVirtual ("/test")

For Each File in Upload.Files
    File.CopyVirtual "/upload/" & File.ExtractFileName
    File.Delete ' delete from upload directory
Next
%>
<% = Count %> files uploaded.
</BODY>
</HTML>

Changes to this file are as follows:

1) The line of code that performs the logonuser method, replace with your account username and password
Upload.logonuser "", "username", "password"

2) The SaveVirtual Method is needed to save the file to the server in a temporary directory
Upload.SaveVirtual ("/test")

3) The CopyVirtual Method is needed to copy the file to your upload directory.  The upload directory can be any valid directory you have created. 
File.CopyVirtual "/upload/" & File.Name

Server Setup

Email InfoQuest Support at support@infoquest.com indicating you would like ASPUpload enabled for your account and specify the directory where the script is located.  The upload script will need to execute from a subdirectory, not the wwwroot.

Conclusion

ASPUpload provides a simple way of uploading files using ASP within your website.  This is a simple example of some of the upload objects and methods. For a complete listing of ASPUpload's objects and methods, visit http://www.aspupload.com/