ASPUPLOAD

How do I use the ASPUpload component to upload files to my website?

The following article explains how to use the ASPUpload component within your website. ASPUpload is an Active Server Page component which enables an application to accept, save and manipulate files uploaded with a browser. 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="#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>

The action page, uploadscript.asp in this example, will contain the ASPupload script.

<HTML>
<BODY>

<% Set Upload = Server.CreateObject("Persits.Upload.1")
Count = Upload.SaveVirtual("virtual_directory_name") %>
<% = Count %> files uploaded.

</BODY>
</HTML>

* If you are using a web builder like FrontPage you will need to enter the ASP code in HTML view.

It is important that you let us know what directory you would like the files to be uploaded so that we can set the right permissions for you on that directory.

support@hostmysite.com

You can now go ahead and try to upload a few files. You can use any or all of the input boxes on your form. AspUpload is smart enough to figure out which input boxes are used and which are not.

For more information about the ASPUpload configuration on our server, including disabled methods and their alternatives, you can view the ASPUpload manual located at http://www.aspupload.com/manual_share.html.

 

© 2015 HostMySite