Problem is caused by MAC
putting space in instead of an empty field - try using trim() when checking
the field to see if it has been filled.

-----Original Message-----
From: Alex Skinner - Digital Dreams [mailto:[EMAIL PROTECTED]]
Sent: 28 March 2001 10:46
To: CF-Talk
Subject: RE: Weird CFFile behaviour with Mac IE5 upload


Why not check the form field for the existance of a \

even if the form field is not "" is shouldn't contain a \
unless a file has been selected

In addition check that the form field length is greater than 5

i.e   valid 3 letter extenstion + the . + at least one \

HTH

Alex


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Cameron
Sent: 28 March 2001 03:57
To: CF-Talk
Subject: Weird CFFile behaviour with Mac IE5 upload


HI,

Has anyone found that using CFFile to upload a file from a Mac IE5 browser
behaves funny?

My precise problem is that if a form contains a <input type="file"
name="theFile"> field & it is left blank, CF will consider that a file has
been uploaded (empty file?). Using <cfif form.theFile NEQ ""> to check if
the file field was empty no longer works. It always contains a filename.

Anyone else found this? Anyone know a solution?

Cameron


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to