469,931 Members | 1,831 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,931 developers. It's quick & easy.

File Upload Problem

Problem 1I 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

Apr 11 '07 #1
2 2760

<vi******@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
Problem 1I 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/

Apr 11 '07 #2
vi******@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")
%>
</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
Apr 12 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by matt | last post: by
3 posts views Thread by Bijoy Naick | last post: by
6 posts views Thread by tshad | last post: by
5 posts views Thread by William LaMartin | last post: by
6 posts views Thread by Vic Spainhower | last post: by
7 posts views Thread by pbd22 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.