RE: Testing File Upload

2005-10-10 Thread Michael T. Tangorre
From: Lee [mailto:[EMAIL PROTECTED] I have a file upload option on a form page where the user may or may not attach a file. How do I test on the action page if the user attached a file? Isdefined and paramaterexists always come in true. cfif len(form.formFieldName) gt 0

RE: Testing File Upload

2005-10-10 Thread Bobby Hartsfield
Just check the length of the file field. cfif len(trim(form.fielfield)) ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Lee [mailto:[EMAIL PROTECTED] Sent: Monday, October 10, 2005 4:34 PM To: CF-Talk Subject: Testing File Upload I

Re: Testing File Upload

2005-10-10 Thread Jason Troy
I would suggest cfif len(trim(form.formFieldName)) some browsers will append a space to the value submitted. cfif len(form.formFieldName) gt 0 ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket