>From the Allaire Tag Gallery:
CFX_IsFile is a simple CFX tag (written in Java) to test the validity of a
given file.
It was originally developed to test file uploads coming from clients using
MacOS and IE 5.x. There is a problem with CF/IE 5.x on the Mac that when a
client is presented with a file upload form field, and the DO NOT provide a
file, that CF thinks one was provided... which would then produce a great
deal of errors and problems in your code.
CFX_IsFile reads the bytes of the file object created by CF, and calculates
the number of bytes, and runs a comparison based on a default threshold, or
on you specify through the THRESHOLD attribute.
You can use CFX_IsFile BEFORE ever calling CFFILE.
Kevin Bridges
-----Original Message-----
From: I-Lin Kuo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 6:50 AM
To: Fusebox
Subject: RE: File upload problem
Brian, I've encountered this problem on a site I worked on before. It's a
Mac thing. For some strange reason, Macs cache the value of <input
type="File">. A coworker came up with the solution to do a browser-platform
check, and react accordingly. I don't recall the details of the code, but he
encountered difficulties trying to set the value of the input directly
(security issues) and had to work around that.
Hope this helps
I-Lin Kuo
----- Original Message -----
>Date: Tue, 17 Apr 2001 10:52:21 +1000
>From: "Knott, Brian" <[EMAIL PROTECTED]>
>Subject: File upload problem
>I have a problem with a file upload from a Macintosh. The problem is with
>the file form type. I have a form that list all of an objects properties,
>including an image. If I leave the image field blank i.e. don't select an
>image to upload, then on the next page the form value actually contains a
>value.
>This value will return a value list d:\winnt\ace\f7da.tmp even though
>nothing was in the file field on the form page.
>Does anyone knot what is going on here. It work fine on a PC, the form
>value is returned as null.
>Brian Knott
>MSCE BBUS(IT) MACS CAE
>Senior eCommerce Developer
>QANTM Australia CMC Pty Ltd
>Phone (07) 3017 4331
>Mobile 0407 572127
>Email [EMAIL PROTECTED]
>Website http://www.qantm.com.au
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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