File Upload Problem

V

vinodkus

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

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
</head>

<body>
<form method = post enctype = "multipart/form-data"
action="uploadScript1.asp" >
<input type = file name =file1 size="20" />
<input type = file name =file2 size="20" />
<input type = file name =file3 size="20" />
<input type = submit value = upload>
</form>


</body>

</html>

Code for UploadScript1.asp

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
</head>

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

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

ThatsIT.net.au

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

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
</head>

<body>
<form method = post enctype = "multipart/form-data"
action="uploadScript1.asp" >
<input type = file name =file1 size="20" />
<input type = file name =file2 size="20" />
<input type = file name =file3 size="20" />
<input type = submit value = upload>
</form>


</body>

</html>

Code for UploadScript1.asp

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
</head>

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

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/
 
D

Daniel Crichton

(e-mail address removed) 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")
%>
</body>
</html>

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top