The weird thing is that without doing any client side verification
(Javascript), there's no way of stopping the file upload, AFAIK.

It seems to me that CF sees that MacIE has sent a file along, which is saves
as a tmp file, & returns the tmp file in the form field.

So even if the field is empty (no file selected), after it gets to the
server the file field is replaced with something like "c:\winnt\ACFD93.tmp".
Seems that CF saves the file uploaded, sets the field to the name of the
uploaded file & then uses CFFILE to copy the file to the right place &
handle the name conflicts etc.

So yeah, anymore suggestions?

Cam

===============
Date: Wed, 28 Mar 2001 10:45:45 +0100
From: "Alex Skinner - Digital Dreams" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
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


Cameron Junge
Web Developer
STRONGnet
Email: [EMAIL PROTECTED]
Website: http://www.strongnet.co.nz
Phone: (09) 414 2492

"You play with a Mac until you break it,
You play with a PC until it works."


Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to