File upload using ASP

Discussion in 'C#' started by Cinta April, Jun 23, 2008.

  1. #1
    Hi how do I upload a file using ASP? How do you get the posted binary data? I am using asp and not asp.net. Any tutorial on this?
     
    Cinta April, Jun 23, 2008 IP
  2. saurabhj

    saurabhj Banned

    Messages:
    3,459
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #2
    saurabhj, Jun 23, 2008 IP
  3. Cinta April

    Cinta April Banned

    Messages:
    262
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I am using aspupload but this is the error message i got. any ideas?

    Error Type:
    Persits.Upload.1 (0x800A003D)
    Wrong Content-Type. Make sure you have included the attribute ENCTYPE="multipart/form-data" in your form.

    I check my friends web page that works in his computer. I open it in my comp and it doesn't work too, so I think it has something to do with my comp, not my code.
     
    Cinta April, Jun 24, 2008 IP
  4. 50plus

    50plus Guest

    Messages:
    234
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Did you check your form for :

    <form method="post" action="xyz.asp" enctype="multipart/form-data">
     
    50plus, Jun 25, 2008 IP
  5. VishalVasani

    VishalVasani Peon

    Messages:
    560
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hello,

    If you donot want any third part software then you can use
    Server.CreateObject("ADODB.Stream")
    Code (markup):
    functionality of asp to perform Upload.
     
    VishalVasani, Jul 3, 2008 IP