A trick I use sometimes might help.

Make a js that copies your filefield inof to a hidden form element.  Then
use CF to check the value of that hidden field (aptly named to tie it with
the sister filefield if you're doing multiple uploads) ... the field will
contain the information that you see in the filefield, so you should be able
to check the value of the contents... only accessing the actual file
variable containing the tmp information when you need to process an upload.

only caveat to this... I havent' tested with a Mac so I can't promise you
that mac js will behave the same way that IE 5.x js has been for me...

|-----Original Message-----
|From: Cameron [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, March 29, 2001 5:17 PM
|To: CF-Talk
|Subject: RE: Weird CFFile behaviour with Mac IE5 upload
|
|
|Ok, so MacIE5 puts a return character in all form fields 
|(explains why I was
|getting weird stuff doing updates on formfields pulling stuff from a
|database).
|
|Is there any way to stop Coldfusion thinking that the return 
|is an ACTUAL
|file?
|
|As I tried to explain before, it seems that CF sees the form 
|field as not
|being empty, creates a temp file, saves the supposed file to 
|the temp file,
|and replaces the content of the form field with the temp file name. So,
|besides checking the length of the temp file, is there anyway 
|to actually
|prevent the upload in the first place?
|
|this is driving me spare...
|
|Cam
|
|> Date: Wed, 28 Mar 2001 14:58:22 +0100
|> From: "JustinMacCarthy" <[EMAIL PROTECTED]>
|> To: [EMAIL PROTECTED]
|> Subject: RE: Weird CFFile behaviour with Mac IE5 upload
|>
|> Actually IE5 on Mac adds a return char to every form fields...
|>
|>
|> Justin
|>
|> >-----Original Message-----
|> >From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
|> >Sent: Wednesday, March 28, 2001 12:52 PM
|> >To: CF-Talk
|> >Subject: RE: Weird CFFile behaviour with Mac IE5 upload
|> >
|> >
|> >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.
|
|
|
|Archives: http://www.mail-archive.com/[email protected]/
|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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to