Persits Software, Inc. Knowledge Base Articles

Cannot use Request.Form collection after calling BinaryRead error

Problem Description

A call to Request or Request.Form in an upload script after calling the method Save (SaveVirtual, SaveBinary) of AspUpload generates one of the following two errors:

Request object, ASP 0207 (0x80004005)
Cannot use Request.Form collection after calling BinaryRead.

or

Request object, ASP 0208 (0x80004005)
Cannot use the generic Request collection after calling BinaryRead.

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).

Related Articles

PS01032617: Upload.Form collection returns the first selected item only from a multi-select control

PS01032621: Upload.Form collection is empty until a Save method has been called