File Upload Problem

Discussion in 'ASP General' started by vinodkus@gmail.com, Apr 11, 2007.

  1. Guest

    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
     
    , Apr 11, 2007
    #1
    1. Advertising

  2. <> wrote in message
    news:...
    > 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/
     
    ThatsIT.net.au, Apr 11, 2007
    #2
    1. Advertising

  3. 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
     
    Daniel Crichton, Apr 12, 2007
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2FyYXY=?=

    Upload a file without file Upload control - ASP.Net

    =?Utf-8?B?U2FyYXY=?=, Aug 2, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    2,581
    Bruce Barker
    Aug 3, 2005
  2. Heather Fraser
    Replies:
    0
    Views:
    664
    Heather Fraser
    Jul 5, 2004
  3. Replies:
    1
    Views:
    967
    Gabriel Genellina
    Nov 25, 2006
  4. Prakash
    Replies:
    3
    Views:
    490
    Ray at
    Nov 12, 2003
  5. Replies:
    7
    Views:
    242
    Tad McClellan
    May 21, 2006
Loading...

Share This Page