Trim don't help as it is not space. If field one is 32 long, so is field 2 supposedly even though it's nothing in it.
-----Original Message----- From: Sandeep Shetty [mailto:[EMAIL PROTECTED]] Sent: 04 December 2002 13:57 To: '[EMAIL PROTECTED]' Subject: RE: [ cf-dev ] MAC and file upload probs again how about <cfif trim(form.field2) neq ""> does that help? i reme,ber my colleague having a similar problem and using a similar solution -----Original Message----- From: Snake [mailto:[EMAIL PROTECTED]] Sent: 04 December 2002 12:47 To: [EMAIL PROTECTED] Subject: [ cf-dev ] MAC and file upload probs again OK whats the deal with this on a MAC. Two formfields for file upload. If you upload something in the first and not the second, the second still submits something and it has the same length as the first, and thus you process it thinking there was a file upload, which of course generates an error. So a check of <cfif form.field2 neq ""> Fails because there is something in there of the same length as field one. Aghhh -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
