Hey All:
 
I have a form which uploads several files via CFFILE.  It works great on
all browsers, EXCEPT for Mac IE5.  I have had this problem before, and
fixed it by wrapping the CFFILE within a CFTRY tag.  However, CF isn't
catching the error, and is bombing out.  Here is my code:
 
<cfif len(trim(form.flash_movie))>
      <CFTRY>
      <cfset field_count = field_count + 1>
      <CFFILE ACTION="UPLOAD"
            FILEFIELD="flash_movie"
            DESTINATION="#upload_dir#"
            NAMECONFLICT="MAKEUNIQUE">
      <cfset flash_movie = #file.ServerFile#>
      <CFCATCH TYPE="ALL">
            <cfset form.flash_movie = "">
      </CFCATCH>
      </CFTRY>
</cfif>
 
Please let me know if you see any flaws (my eyes are SURE tired ^_^), or
if you know of any issues with CF 4.0 and Mac IE5.
 
TIA!
 
----
SCOTT VAN VLIET
BRD.WRKS INTERACTIVE
T: 714.469.6805
E: [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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to