Good question. I recall seeing this happen also. I thin we solved it like this:
<cfif trim(formfield) is not "" and listlast(formfield,".") is not "tmp"> <cffile action="upload" blah blah> </cfif> bd At 05:06 PM 26/04/02 -0400, you wrote: >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 > >> > >> > >> > > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists