Forums
This topic is locked
Pure ASP 2.10 Upload problem
02 Apr 2003 09:18:24 ipaq CE posted:
Hi whenever I use the insert form when using the Pure ASP upload 2.10 I get this error.---------------------------------------
Request object error 'ASP 0207 : 80004005'
Cannot use Request.Form
/insert.asp, line 50
Cannot use Request.Form collection after calling BinaryRead.
--------------------------------
Can anyone tell me what is causing this? and do you know if it has to do with the Permissioning the ScripLibrary Folder?
Replies
Replied 02 Apr 2003 09:45:30
02 Apr 2003 09:45:30 Martha Graham replied:
After you use the Pure ASP Upload you can't use the Request.Form collection. You should use instead UploadFormRequest(..)
So for example,instead of writing:
Request.Form("myfield"
Now you should write:
UploadFormRequest("myfield"
Note this is only the case AFTER the upload is executed, not when initialy the upload form is just displayed. So you can write the following code block that is only executed after the upload:
<%
If (CStr(Request.QueryString("GP_upload"
) <> ""
Then
'Do something with the other fields
myvar = UploadFormRequest("myvar"
end if
%>
Martha Graham
So for example,instead of writing:
Request.Form("myfield"

Now you should write:
UploadFormRequest("myfield"

Note this is only the case AFTER the upload is executed, not when initialy the upload form is just displayed. So you can write the following code block that is only executed after the upload:
<%
If (CStr(Request.QueryString("GP_upload"


'Do something with the other fields
myvar = UploadFormRequest("myvar"

end if
%>
Martha Graham
Replied 02 Apr 2003 10:00:10
02 Apr 2003 10:00:10 ipaq CE replied:
Thanks Martha it worked fine when changing the code. Again thanks for your help.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
After you use the Pure ASP Upload you can't use the Request.Form collection. You should use instead UploadFormRequest(..)
So for example,instead of writing:
Request.Form("myfield"
Now you should write:
UploadFormRequest("myfield"
Note this is only the case AFTER the upload is executed, not when initialy the upload form is just displayed. So you can write the following code block that is only executed after the upload:
<%
If (CStr(Request.QueryString("GP_upload"
) <> ""
Then
'Do something with the other fields
myvar = UploadFormRequest("myvar"
end if
%>
Martha Graham
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
After you use the Pure ASP Upload you can't use the Request.Form collection. You should use instead UploadFormRequest(..)
So for example,instead of writing:
Request.Form("myfield"

Now you should write:
UploadFormRequest("myfield"

Note this is only the case AFTER the upload is executed, not when initialy the upload form is just displayed. So you can write the following code block that is only executed after the upload:
<%
If (CStr(Request.QueryString("GP_upload"


'Do something with the other fields
myvar = UploadFormRequest("myvar"

end if
%>
Martha Graham
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>