Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ASP Upload Probs

    Here's the short version:

    Was using CPSHOST.DLL for uploading on Windows NT 4 Server and everything was working fine. Upgraded to Windows 2000, downloaded ASPFileUpload and now I cannot seem to upload a file and pass form variables at the same time.

    If I use Request("VarName) I get an error "Cannot use generic request object", if I use Request.Form("VarName") Before the file upload I get a "Cannot do BinaryRead after...blah blah". I'm getting pretty frustrated and the clock is ticking.

    rynðx

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have not used ASPFileUpload, but most file upload scripts I have seen you can not access form fields using Request.Form. You usually have to do something like

    For Each File In objFileUpload.Files.Items (or For Each File In objFileUpload.Files)
    myFileName = File.FileName
    Next

    You might want to try a search on google.


  •  

    Posting Permissions

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