CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Posts
    1

    Question Upload File In ASP Error

    Dear All,

    I ready ready need ur all help, i plan to upload the file using ASP and ActiveFile object, the code i was write as below (I search from Internet)

    UploadFile.asp
    ===========

    <form method="post" action="FileUpload1.asp" name="submit" enctype="multipart/form-data">
    Choose A File: <input type="file" name="filefield"><br><br>
    <input type="submit" name="submit" value="submit"><br>
    </form>

    FileUpload1.asp
    ============

    <%
    Set Post = Server.CreateObject("ActiveFile.Post")

    Post.Upload "C:TEMP"


    ' Display a summary of the uploaded data

    For Each FormInput In Post.FormInputs



    If FormInput.ContentType <> "" Then

    ' Display uploaded file information

    Response.Write FormInput.Name & " = " & FormInput.File.FileName & _

    ", size=" & FormInput.File.Size & "<BR>"

    Else

    ' Display form element name and value

    Response.Write FormInput.Name & " = " & FormInput.Value & "<BR>"

    End If



    Next

    %>

    When try to run, the error below display:

    Server object, ASP 0177 (0x800401F3)
    Invalid class string

    I not know why? is it i not have this object in my workstation? How can i check the object?

    Hope somebody can try to solve my problem. TQ

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Upload File In ASP Error

    Did you get your example from here? Sounds to me like you need to register the upload DLL.

    Code:
    regsvr32 c:\path\to\aspupload.dll
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Upload File In ASP Error

    Here is all you need to allow users to upload:
    http://www.freeaspupload.net/

    Of course, the folder where the files are stored needs to have the proper permissions set.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured