AspUpload Code samples

Root Folder > Web Hosting
Copy and Paste this code into a file with Form1.asp name.

<!-- AspUpload Code samples: Form1.asp -->
<!-- Simple upload form -->
<!-- Copyright (c) 2001 Persits Software, Inc. -->
<!-- http://www.persits.com -->

<HTML>
<BODY BGCOLOR="#FFFFFF">

<h3>Simple Upload</h3>

 <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="UploadScript1.asp">
  <INPUT TYPE="FILE" SIZE="40" NAME="FILE1"><BR>
  <INPUT TYPE="FILE" SIZE="40" NAME="FILE2"><BR>
  <INPUT TYPE="FILE" SIZE="40" NAME="FILE3"><BR>
 <INPUT TYPE=SUBMIT VALUE="Upload!">
 </FORM>
</BODY>
</HTML>

Then copy and paste this code and save it as UploadScript1.asp

<!-- AspUpload Code samples: UploadScript1.asp -->
<!-- Invoked by Form1.asp -->
<!-- Copyright (c) 2001 Persits Software, Inc. -->
<!-- http://www.persits.com -->

<HTML>
<BODY>

<%
Set Upload = Server.CreateObject("Persits.Upload")
Count = Upload.SaveVirtual("/upload")

Response.Write Count & " file(s) uploaded to /upload"

%>

</BODY>
</HTML>

Copy these two files to your website and try to upload files with Form1.asp


Add Feedback