Ok, got it sorted. Set another variable = file field and check that if that variable = "".
Cheers, Darren > -----Original Message----- > From: Darren Adams [mailto:[EMAIL PROTECTED]] > Sent: 17 February 2003 14:41 > To: CF-Talk > Subject: Field validation for an input type file. > > Hello All, > > Just wondered if anyone had a good way to check if a user has selected > anything for a file field. > > Basically, the file field is the only field in the form but, when I try > to check the value it is an empty string. However, if I do "<cfif file > NEQ "">" the server just tells me that complex types cannot be converted > etc........... > > When I cfdump the attributes scope the value for the file field is > [empty string]. > > Any ideas ? > > > Cheers, > > Daz > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4