Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use Request.Form after calling BinaryRead.

Status
Not open for further replies.

thelordoftherings

Programmer
May 16, 2004
616
IL
Hello,

My code is having this error:

Request object error 'ASP 0207 : 80004005'

Cannot use Request.Form

/uploadTester.asp, line 124

Cannot use Request.Form collection after calling BinaryRead.

I found this solution:
Due to the special ENCTYPE="multipart/form-data" attribute of your form, you cannot use the Reqest.Form collection. Use Upload.Form instead, but only after you call Upload.Save (SaveVirtual, SaveToMemory).
Can anyone please explain it with code example?
 

You are using a custom Upload class or component - I suggest you goto the developers site and read the manuals, they should give you good clear examples and overview of the functionality.

What the text is saying is that you need to call the Save method of your upload class to retrieve the data from the form and then use that object to retrieve form variables.

Whichever upload component/class you are using will likely have a better description than here.


A smile is worth a thousand kind words. So smile, it's easy! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top