Reputation: 13
Good evening
I have been playing around with File upload i wanted to upload a File and have it send to the server and i Wanted to do this in plain Classic ASP
Saw some codes online and Played with it, Except it gave some Errors with IIS. Code looks like this
<HTML>
<BODY BGCOLOR="#FFFFFF">
<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>
and the back end script looks like this
<HTML>
<BODY>
<%
Set Upload = Server.CreateObject("Persits.Upload")
Count = Upload.Save("c:\upload")
Response.Write Count & " file(s) uploaded to c:\upload"
%>
</BODY>
</HTML>
After enabling the debugger i got something that looks like this
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/uploadtest/UploadScript1.asp, line 4
800401f3
What could be Wrong?
Upvotes: 0
Views: 1799
Reputation: 743
The object Persits.Upload is a third-party component (a COM object) that has to be installed on the server. You can download a trial and/or purchase it here: http://www.aspupload.com/manual.html
Upvotes: 2