Replies Back to Article
What instead Request.Form when getting a BinaryRead error?
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 '?
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), """"))
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.
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!
<%
If (CStr(Request.QueryString("GP_upload")) <> "") Then
'Do something with the other fields
Response.Redirect "nextpage.asp?naarwie=" & UploadFormRequest("naarwie")
end if
%>
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!
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
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?
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??
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
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.
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
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.
k