I don't suppose you could pass along this proceedure ... I tried using:

<cfif HTTP_USER_AGENT contains "MSIE" and HTTP_USER_AGENT contains "Mac">
        <cfset photo=#Left(photo,Len(photo)-2)#>
<cfelse>
</cfif>

<cffile action="upload" filefield="photo"
destination="c:/inetpub/wwwroot/sitename/">

And I get an error saying that the filefield doesn't contain a valid file
for upload... I'm proabably way off on this though.

Joshua Miller
Web Development
Eagle Technologies Group, Inc.
Business Solutions for the Next Generation
www.eagletgi.com <http://www.eagletgi.com>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


-----Original Message-----
From: Rob Keniger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 8:44 PM
To: CF-Talk
Subject: Re: CFFILE and IE 5.0 on a Mac doesn't work


on 8/12/00 6:06 AM, Craig A. Zingerline at
[EMAIL PROTECTED] wrote:

> I'm wondering if anyone has found a workaround to the following
> situation...we are using CFFILE to upload .gif and .jpg files to our
server.
> The scripts work fine on Netscape and IE on a PC, but only work with
> Netscape on a Macintosh.  The mac OS is 9.0 and we are using IE 5.0.  I
have
> a couple of links with relevant information below, but have not been able
to
> find (nor do I know) if a workaround to this problem exists.  We get the
> following error code:

What I have found is that IE 5 Mac appends control characters (I think
CR/LF) to the end of values passed through form fields when you are using
multipart/form-data encoding. If you are using a field to specify the file
name then this could be the problem. I wrote a procedure for a site that had
this problem that did a user-agent check and stripped the rightmost two
characters if it was Mac IE. Seemed to work OK.

--

Rob Keniger

big bang solutions

<mailto:[EMAIL PROTECTED]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        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

Reply via email to