Replies Back to Article

What instead Request.Form when getting a BinaryRead error?

Unfortunately solved problem 2 days after I did a workaround!!
December 12, 2001 by Mike Wintersgill

Can you use UploadFormRequest as a collection?

i.e. in the same way you can use ' myStr = Request.Form ' which will populate myStr with the entire Form item/value pairs, can you use ' myStr = UploadFormRequest '?

 

This should be moved to 2.0
February 19, 2002 by Marc Miles

I was just having this issue, and didnt have a clue what to do.  I only found it becuase I looked in the FAQ for the older version.  So move this on up to the new version as well.  :)

Also, I was able to do the following

CStr(Replace(UploadFormRequest(MM_fields(i)), Chr(34), """"))

RE: This should be moved to 2.0
February 22, 2002 by George Petrov
Done
RE: Unfortunately solved problem 2 days after I did a workaround!!
February 22, 2002 by George Petrov
No you can use it only as function call with the name of a single field as parameter.
Need more explanation
July 26, 2002 by Daniel DeKemper

I'm getting this error but I simply do not understand the explanation provided within help...

Exactly where do I place this code?  Within the ASP code...After the ASP code executes?  Before the ASP code executes?  After the Insert Server behaviour executes? Before the Insert Server behaviour executes?

Please help.  This is driving me crazy.

RE: Need more explanation
July 26, 2002 by George Petrov
after all the asp code - before the html code, will be a perfect place.
UploadFormRequest
August 22, 2002 by Herman Van Aken

Hello,

ive'd add this code into my page afther te ASP code en above the html.
Is there, next this code lines, more codes that I must change ?

Wat you mean by myvar ?

In my case I have a hidden field in my form named "naarwie" and has the passing value. How do I pass this value to my redirect page?

Thanks for a quick awnser!

RE: UploadFormRequest
August 23, 2002 by George Petrov

<%
If (CStr(Request.QueryString("GP_upload")) <> "") Then
  'Do something with the other fields
  Response.Redirect "nextpage.asp?naarwie=" & UploadFormRequest("naarwie")
end if
%>

RE: RE: UploadFormRequest
August 23, 2002 by Herman Van Aken

I try this but it doesn't work...

I've send you the page with the code to look at it.

Sorry to do it by this way but I'm two days working on it and my project stucks!

RE: RE: UploadFormRequest
August 24, 2002 by Herman Van Aken
I did this but no results...Is there more code to modify in the updatepage ? My head blows up !
Pass form value to redirect page
August 25, 2002 by Herman Van Aken
Hello, Is there someone that find a solution that work... Do I need edit more code in my update or insert form ?
Cant gt it to work
November 14, 2002 by j c

I dont seem to be able to pass the form value through to the next page.  Im using:

If (CStr(Request.Querystring("GP_upload")) <> "") Then
  GP_redirectPage = "upload_insert.asp?fileName=" & UploadFormRequest("Main")
  If (GP_redirectPage = "") Then
    GP_redirectPage = CStr(Request.ServerVariables("URL"))
  end if

which should work, but it passes through nothing, i get: http://www.domainname.co.uk/upload_insert.asp?fileName=

where obviously fileName is nothing

Can anyone help?

jody

same thing happens
November 20, 2002 by peter Langlo

Cannot use the generic Request collection after calling BinaryRead. in line line 258(red)

<%
Dim rsRC__vCC
rsRC__vCC = "NO"
if (Request("CC")  <> "") then rsRC__vCC = Request("CC")
%>

Anyone knows what to do?

Has anyone actually got this to work?
May 28, 2003 by Dan Berdusco
After reading all the replies for this article, i don't think anyone has got it to work... Including myself.  I have tried everhting that has been posted as reviews but I simply can't get this to work.  I need to have a form that uploads a file, and then on a second page, use CDONTS to send all the other form variables in an email.
Mailing Form Fields values after upload
September 11, 2003 by Gian Luca Marsili

Okay. I can't use the Request.Form collection and I have to use UploadFormRequest instead. The problem is that while my file upload works fine I can't get the UploadFormRequest to work properly. I used Geaorge's tip and I inserted the line " If (CStr(Request.QueryString("GP_upload")) <> "") Then" but nothing happens! The problem is that after uploading the file the user is redirected to a page where the form data is collected and mailed with asp email but the query string GP_upload = true is lost, so the data collection script via UploadFormRequested is not parsed. Why that??

Not using request.form but get the same error! Ideas?
January 19, 2005 by Peter Samuel

The pure upload works really well on my upload page.

However; I have written some script on an update page so that

if document changed then
         upload new
else
         write same filename back to db
end if

The file is not a required field but I still get this cannot read binary string error.

Could it be something to do with user permissions? As it works on one server but not another?

Any help much appriecated

Pete

binaryread error
April 18, 2005 by dipesh manandhar
i am processing a normal asp page(not .net) where i have some fields. i need to pass these field contents to the page where it uploads files but i just need to hold it there so i can send it to another page.....i understand i can't use Request.form but use UploadFormRequest instead. But that is only after the upload has been processed....i have not processed anything....i just want it to hold it on the page that uploads files. I am very new at this. any held is appreciated.
This Works - Follow the link
July 26, 2005 by Auz Clement

Please check out this link if you are having trouble : http://www.dmxzone.nl/showDetail.asp?TypeId=7&NewsId=1707

 

You want to make sure the upload behavior does not redirect.  check the link for details.

Still cannot pass a Session variable
January 2, 2008 by bill charrette

I’ve read all the replies for this article and still cannot pass a Session variable from one page to another when applying the Pure File Upload

I am using Dreamweaver: 8.02, Pure ASP Upload 3, ASP VBScript

I understand that after you use the Pure ASP Upload you can't use the Request.Form collection.  Therefore I am using the UploadFormRequest(..) instead.

The following code is placed on the upload page (per your instructions at  http://www.dmxzone.nl/showDetail.asp?TypeId=7&NewsId=1707):

<%

If (CStr(Request.QueryString("GP_upload")) <> "") Then

New_redirectPage = "newsletter_added.asp" 'Set the new redirect page

'Set our session, cookie or other variables from the form submissions

Session("sessNewsletterFrom") = UploadFormRequest("NewsletterFrom")

Session("sessNewsletterPrivacyType") = UploadFormRequest("NewsletterPrivacyType")

Session("sessNewsletterSubject") = UploadFormRequest("NewsletterSubject")

Session("sessNewsletterMessage") = UploadFormRequest("NewsletterMessage")

Session("sessNewsletterAttachment1") = UploadFormRequest("NewsletterAttachment1")

Session("sessNewsletterAttachment2") = UploadFormRequest("NewsletterAttachment2")

Session("sessNewsletterAttachment3") = UploadFormRequest("NewsletterAttachment3")

'Redirect the page if we have set the above variable

If New_redirectPage <> "" Then

Response.Redirect(New_redirectPage)

End If

End If

%>

 

 

The following code is placed on the redirect page (per your instructions at http://www.dmxzone.nl/showDetail.asp?TypeId=7&NewsId=1707):

 

<%

'These are used to check for correct values

'Remove or comment then out after checking!

Response.Write "NewsletterFrom: " & Session("NewsletterFrom") & "<P>"

Response.Write "NewsletterSubject: " & Session("NewsletterSubject") & "<P>"

Response.Write "NewsletterPrivacyType: " & Session("NewsletterPrivacyType") & "<P>"

Response.Write "NewsletterMessage: " & Session("NewsletterMessage") & "<P>"

Response.Write "NewsletterAttachment1: " & Session("NewsletterAttachment1") & "<P>"

Response.Write "NewsletterAttachment2: " & Session("NewsletterAttachment2") & "<P>"

Response.Write "NewsletterAttachment3: " & Session("NewsletterAttachment3") & "<P>"

Response.End

%>

Any help would be greatly appreciated

Thanks Bill

RE: Cant gt it to work
May 13, 2008 by Kenny Darcy

I am trying to use this with SIP

 

sip_big.Mask = "##path##big_##name##.jpg"

 

 rather then big_ I want to have

UploadFormRequest("picrefsku")

 

no matter how I call it I cannot get it to work.

any help greatly appreceated.