File Upload Problem

File Upload Problem

am 11.04.2007 07:42:45 von vinodkus

Problem 1> I m writing a code to upload a file There are two files
form.asp, uploadScript1.asp
Code for form1.asp






New Page 1



action="uploadScript1.asp" >











Code for UploadScript1.asp







New Page 1



<%
Set Upload = Server.CreateObject("Persists.Upload") ' /***********This
is line No 12*******/
count = Upload.Save("C:\upload")
Response.write("File Uploaded to C:\upload")
%>



My Error is
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/vkasp/upload1/uploadScript1.asp, line 12

Re: File Upload Problem

am 11.04.2007 17:39:59 von me

wrote in message
news:1176270165.594092.129870@o5g2000hsb.googlegroups.com...
> Problem 1> I m writing a code to upload a file There are two files
> form.asp, uploadScript1.asp
> Code for form1.asp
>
>
>
>
>
>
> New Page 1
>
>
>
>

> action="uploadScript1.asp" >
>
>
>
>
>

>
>
>
>
>
>
> Code for UploadScript1.asp
>
>
>
>
>
>
>
> New Page 1
>
>
>
> <%
> Set Upload = Server.CreateObject("Persists.Upload") ' /***********This
> is line No 12*******/
> count = Upload.Save("C:\upload")
> Response.write("File Uploaded to C:\upload")
> %>
>
>
>
> My Error is
> Error Type:
> Server object, ASP 0177 (0x800401F3)
> Invalid class string
> /vkasp/upload1/uploadScript1.asp, line 12
>



Here is code that does not use a third part object, and can upload very
large files without error.

http://dev.thatsit.net.au/samples/asp/upload/

Re: File Upload Problem

am 12.04.2007 11:51:49 von Daniel Crichton

vinodkus@gmail.com wrote on 10 Apr 2007 22:42:45 -0700:

Problem 1>> I m writing a code to upload a file There are two files
> form.asp, uploadScript1.asp

> <%
> Set Upload = Server.CreateObject("Persists.Upload") ' /***********This
> is line No 12*******/
> count = Upload.Save("C:\upload")
> Response.write("File Uploaded to C:\upload")
> %>
>
>
>
> My Error is
> Error Type:
> Server object, ASP 0177 (0x800401F3)
> Invalid class string
> /vkasp/upload1/uploadScript1.asp, line 12


You mistyped the class string, it's Persits.Upload, not Persists.Upload
(notice there is no S before the T). This however will only work if
ASPUpload is installed on the server.

Dan