What is the content of the second field that is submitted, can you trim() it to get the true length? Is the content the same as for the first field? Can you check the validity directly in any way without using the lengh of the data?
Just my two aardvarks worth? Martin -----Original Message----- From: Snake [mailto:[EMAIL PROTECTED]] Sent: 04 December 2002 13:50 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] MAC and file upload probs again I used the disabled form fields method already now. Checking the length of the fields doesn't help, as they are always the same regardless of what was submitted. -----Original Message----- From: Alex Skinner [mailto:[EMAIL PROTECTED]] Sent: 03 December 2002 13:41 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] MAC and file upload probs again Macs are a pain the arse is this i.e 4.5 ? I'd use 2 hidden controls one for each of the form fields when the user puts some data in a form field the hidden control corresponding is set a true status through javascript. Only insert the image or work with the image on the server side if the corresponding hidden field has true. Thats the way i've done it hacky I know Then of course you need to check that the data sent has significant length before you process it so rather than checking for "" check for content length. Alex -----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] -- ** 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]
