Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > File Upload Problem

Reply
Thread Tools

File Upload Problem

 
 
vinodkus@gmail.com
Guest
Posts: n/a
 
      04-11-2007
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

 
Reply With Quote
 
 
 
 
ThatsIT.net.au
Guest
Posts: n/a
 
      04-11-2007

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> 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/

 
Reply With Quote
 
 
 
 
Daniel Crichton
Guest
Posts: n/a
 
      04-12-2007
http://www.velocityreviews.com/forums/(E-Mail 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File upload from client application (non-form based upload) stuart@microsoft.com Python 1 11-25-2006 12:14 AM
file upload - get the file size problem zhilianghu@gmail.com Perl Misc 7 05-21-2006 04:39 AM
Upload a file without file Upload control - ASP.Net =?Utf-8?B?U2FyYXY=?= ASP .Net 3 08-03-2005 01:09 AM
How to detect sizeof upload in order to show status of browser file upload? Heather Fraser Java 0 07-05-2004 12:35 AM
Upload Excel with Macros using HTML File Upload Prakash ASP General 3 11-12-2003 04:26 AM



Advertisments