Redirect after upload and pass the filename
Question:
I'm trying to pass the filename to the second page, but I can't get it to work.
You should add the following code block at the end of all ASP scripts and before the <html>:
I'm trying to pass the filename to the second page, but I can't get it to work.
Answer:
You should add the following code block at the end of all ASP scripts and before the <html>:
<%
If (CStr(Request.QueryString("GP_upload")) <> "") Then
Response.Redirect "nextpage.asp?filename=" & UploadFormRequest("file")
end if
%>
Note: You shouldn't enter a redirect page on the Pure ASP Upload dialog. Leave the field "After Upload, goto" empty
Comments
Problem with example code
UploadRequestForm("file") didn't work form
I used UploadFormRequest("file") instead and all was fine.
RE: Problem with example code
How to pass more than one variable?
Passing all parameters...
How can I adjust the above code to pass all of the form parameters and not just the 'filename' parameter?
You must me logged in to write a comment.