The problem resides in IE 5 Mac's Caching.  I am using the trim()
function for the upload, however, that is not the problem.

Here's the scenario:

I have a page that is a product Add/Edit form.  If I post a new product
using that form with it's Add functionality, the blank file fields
aren't uploaded (I trim the value, and do the upload or not).

Now, if the user returns to that page in the same session, the file
fields in the form have a value of "C:\WINNT\TEMP\ACF46D.gif", etc.  The
fields are blank, however, IE 5 Mac seems to cache the file in that
form.

Any ideas?

TIA. 

-----Original Message-----
From: BEN MORRIS [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 02, 2001 7:25 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: CFFILE / IE 5 on Mac Problems!

Make sure you use:
<cfif Len(Trim(form.name)) GT 0>
  <code to do upload...>
</cfif>

As IE 5 adds whitespace to form fields when it is a multipart/form-data
form.  A lesson to always use Trim().

- Ben Morris

>>> "Scott Van Vliet" <[EMAIL PROTECTED]> 10/01/01 09:15PM >>>
I am having uber-huge problems with CFFILE and IE 5 on the Mac.
 
Basically, I have CF checking if the <input type=�file�> field 
contains
a null value, and if it doesn�t, then upload the image.
 
It works fine everywhere else, EXCEPT IE 5 on the Mac.
 
Any help is greatly appreciated!
 
Thanks,
 
Scott
 
--
SCOTT VAN VLIET
JUXT INTERACTIVE
[EMAIL PROTECTED] 
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to