Long island web design, hosting company
Home About Us Support Products Services Portfolio Contact Us Home

ASP > Using Persits ASPUpload

Created On: 11/24/2004 9:58:00 AM

Following asp source code is easiest way to upload files to your server. Source code is very short and user-friendly to modify to use in a real application. You ISP must provide your Persits Upload component.
 
<HTML>
<BODY BGCOLOR="#FFFFFF">


<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="upload.asp.asp">
<INPUT TYPE=FILE SIZE=60 NAME="strFile"><BR>
<INPUT TYPE=SUBMIT VALUE="Upload" NAME="func">
</FORM>

<% 
if request.form("func") = "Upload" then
Set Upload = Server.CreateObject("Persits.Upload.1") 
Upload.Save("c:\Inetpub\wwwroot\pics")

response.write "File Has Been Uploaded ..."
end if
%>

</BODY>
</HTML>