Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 60
Product
FileUp
Version
2.x
Title
Request object error 'ASP 0206 : 80004005' when attempting upload
Problem
When attempting to upload a file, you may see the following error message:
Request object error 'ASP 0206 : 80004005'

Cannot call BinaryRead 

/scripts/formresp.asp, line xx

Cannot call BinaryRead after using Request.Form collection.
This is typically caused by making a call to Request.Form on the same page where you are using the SoftArtisans.FileUp object. The HTTP file transfer protocol requires that the posting form's enctype be set to multipart/form-data. This enctype is not compatible with ASP's Request.Form collection.
 
Solution
Do not use the Request.Form object on the same page that you are using to process your uploads. Use the SoftArtisans.FileUp object's Form or FormEx object instead. For example, you would replace:
Response.Write Request.Form("Text1")
with
Response.Write upl.Form("Text1")
Note: If you need to retrieve form elements with multiple values, you should use the FileUp object's FormEx property. FormEx has all the functionality of the Form object, but it also contains support for such things as multiselect list boxes and check boxes.

To access the elements of a FormEx collection, use either:

A "For...Each" statement.

For example:  "For each item in upl.FormEx(multipart)"

OR
Index numbers.

For example:  "FormEx("name").index"

Created : 12/1/2002 12:00:00 AM (last modified : 1/29/2002 12:17:00 PM)
Rate this article!
Comments