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]

Reply via email to