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. Below is a cut down version of the form.
<form name="edit"
action="index.cfm?attributes.fuseaction=updateProducts&id=#id#&type=#url.typ
e#&criteria=#url.criteria#&cat=#url.cat#&goto=#url.goto#&transid=#url.transi
d#" method="post" enctype="multipart/form-data">
...
<input type="file" name="small" size="30" default="">
...
<input type="submit" name="submit" value="Update" alt="Save changes to this
record">
This then goes to the index.cfm and runs this code.
<cfcase value="updateProducts">
<cf_dsp_layout>
<cfinclude template="qry_updateProducts.cfm">
</cf_dsp_layout>
</cfcase>
Then on to the record update file in which I just display the form value.
<cfoutput>form graphics #form.small#</cfoutput>
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