Forums
This topic is locked
Asp Pure Upload and Alfacheck Form Validation
Posted 06 Sep 2003 20:24:32
1
has voted
06 Sep 2003 20:24:32 Les Pamaran posted:
I have inserted client side validation on a form that includes a file upload field using Pure ASP upload. However, I get an error message when submitting the form. Can someone please tell me how to solve this problem?lpamaran
Edited by - lpamaran on 06 Sep 2003 20:27:15
Replies
Replied 04 Dec 2003 23:41:15
04 Dec 2003 23:41:15 Charles Crawford replied:
I'm having the same difficulties.
Anyone got a workaround for this?
Anyone got a workaround for this?
Replied 05 Dec 2003 13:22:06
05 Dec 2003 13:22:06 Patrick Woldberg replied:
What kind of error do you get?
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 05 Dec 2003 20:16:19
05 Dec 2003 20:16:19 Charles Crawford replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
What kind of error do you get?
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I've got a registration page used for creating a new username + password as well as gathering some other details from the user including the option to upload a photo of themselves for their profile.
I'm using DMX's Insert Record and Check New Username server behaviors along with Alfacheck to validate the form. I have these behaviors working fine together.
However, I'm having problems adding the Pure ASP Upload behaviour. I add the behaviour in the normal manner in DMX, but when I test the form out in my browser, I get the following error:
Error Type:
Request object, ASP 0207 (0x80004005)
Cannot use Request.Form collection after calling BinaryRead.
/ScriptLibrary/alfacheck.asp, line 39
alfacheck.asp line 39:
<pre id=code><font face=courier size=2 id=code> If Request.Form.Count <> 0 then</font id=code></pre id=code>
What kind of error do you get?
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I've got a registration page used for creating a new username + password as well as gathering some other details from the user including the option to upload a photo of themselves for their profile.
I'm using DMX's Insert Record and Check New Username server behaviors along with Alfacheck to validate the form. I have these behaviors working fine together.
However, I'm having problems adding the Pure ASP Upload behaviour. I add the behaviour in the normal manner in DMX, but when I test the form out in my browser, I get the following error:
Error Type:
Request object, ASP 0207 (0x80004005)
Cannot use Request.Form collection after calling BinaryRead.
/ScriptLibrary/alfacheck.asp, line 39
alfacheck.asp line 39:
<pre id=code><font face=courier size=2 id=code> If Request.Form.Count <> 0 then</font id=code></pre id=code>
Replied 09 Dec 2003 11:32:19
09 Dec 2003 11:32:19 Patrick Woldberg replied:
All Request.Form must be replaced with UploadFormRequest, this is because when you upload a file the form is submitted in an other way then usual.
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 09 Dec 2003 16:42:50
09 Dec 2003 16:42:50 Charles Crawford replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
All Request.Form must be replaced with UploadFormRequest, this is because when you upload a file the form is submitted in an other way then usual.
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Thanks for the advice Patrick, but i'm still having problems. Do I change the Request.Upload to UploadFormRequest in the Alfacheck.asp file? When I did this, I got another error:
<pre id=code><font face=courier size=2 id=code>Wrong number of arguments or invalid property assignment: 'UploadFormRequest' </font id=code></pre id=code>
Here is the code for my upload page where I'm uploading the image to my server, adding the info gathered to my db, plus trying to validate that all fields are filled using alfacheck.
Could you please tell me where I must change the Rwquest.form to UploadFormRequest.
Thank you!
All Request.Form must be replaced with UploadFormRequest, this is because when you upload a file the form is submitted in an other way then usual.
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Thanks for the advice Patrick, but i'm still having problems. Do I change the Request.Upload to UploadFormRequest in the Alfacheck.asp file? When I did this, I got another error:
<pre id=code><font face=courier size=2 id=code>Wrong number of arguments or invalid property assignment: 'UploadFormRequest' </font id=code></pre id=code>
Here is the code for my upload page where I'm uploading the image to my server, adding the info gathered to my db, plus trying to validate that all fields are filled using alfacheck.
Could you please tell me where I must change the Rwquest.form to UploadFormRequest.
Thank you!
Replied 09 Dec 2003 18:10:46
09 Dec 2003 18:10:46 Martha Graham replied:
Please do not post your code here.
Send your page to
Martha Graham
DMXzone manager
Send your page to
Martha Graham
DMXzone manager