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
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
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
3 matches
Mail list logo