The SIZE attribute of <INPUT TYPE="FILE"> is optional, whereas the NAME attribute is mandatory. This form will invoke the upload script at upload-page.asp page as shown below.
HTML Code
<HTML>
<BODY>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="upload-page.asp">
<INPUT TYPE="FILE" SIZE="40" NAME="FILE1"><BR>
<INPUT TYPE="FILE" SIZE="40" NAME="FILE1"><BR>
<INPUT TYPE="FILE" SIZE="40" NAME="FILE1"><BR>
<INPUT TYPE=SUBMIT VALUE="Upload">
</FORM>
</BODY>
</HMTL>
It will parse the information posted via web browser, determine the number of files is being uploaded, and save them in a specified server directory (C:\HostingSpaces\userid\your-website-name.com\wwwroot\images) under their original names.
ASP Code
<HTML>
<BODY> <%
Set Upload = Server.CreateObject("Persits.Upload")
'Capture and save uploaded image
Upload.IgnoreNoPost = True
Upload.OverwriteFiles = False
Upload.Save "C:\HostingSpaces\userid\your-website-name.com\wwwroot\images"
%>
</BODY>
</HTML>
For further information on setting up the ASPUpload component, you can refer to ASPUpload manual page. Note that ASPUpload component is only available for our Windows Shared Hosting customers. Windows VPS users can purchase the license of ASPUpload and install it on VPS.