Trim() was the first thing I tried. But the value of the field was not a space or carriage return, but something like c:WINNT\TEMP\SomeFile.tmp which I thought was weird. How was a path existing on the server get into the form field?
Brook Davies wrote: > On the mac, often a carriage return is appended to the form fields, so the > check to see if the field is empty will not work. > > Try using a Trim() on the upload field. > > bd > > At 04:48 PM 26/04/02 -0400, you wrote: > >>I'm enhancing a record edit screen that includes images. If you opened a >>record for editing and saved it without changing the images, it was >>generating a "CFFILE can't find the file to uploard" error on a mac. In >>the code, there was a conditional if form.image is '' then do nothing, >>but it was still trying to upload something. When I had the page output >>the formfield, it contained a path to a .tmp file in the server's temp >>direcotdy under WINNT. Anyone ever hear of this? >> >>Doug Jordon >> >> >> > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

