ok, i saw this before and did a search on my archieved emails, you might
want to try using TRIM()... here is the email msg i am refering to:
----------------------------------------------------------------
The answer is:
Mac IE sends some bytes in a blank file field. So to get around this I
needed to create another field which onChange of the file field takes the
name of the field to be uploaded. If nothing is uploaded that field is
blank.
A true pain in the ass but it works.
The answer was provided by: Don Burnstein
Thanks for all the help
kaigler
ps here is the code:
This is the action code:
<CFSET ief=#Trim(iefilename)#>
<CFIF #Ief# IS NOT "">
<cffile destination="c:\temp\cfmail\"
action="upload"
filefield="filename"
nameconflict="overwrite">
<cfset tempfile='#file.serverfile#'>
</cfif>
Here is the form code:
<INPUT TYPE=FILE NAME="filename"
onchange="this.form.iefilename.value=this.value;">
<br>
<input type="hidden" name="iefilename"
onchange="this.value=this.form.filename.value;">
----------------------------------------------------------------
There was mention that Mac browsers add on a return charcter at the end of
the form field...
so, try the above and use TRIM() and see what ya get....
Terry Bader
IT/Web Specialist
EDO Corp - Combat Systems
(757) 424-1004 ext 361 - Work
[EMAIL PROTECTED]
(757)581-5981 - Mobile
[EMAIL PROTECTED]
icq: 5202487 aim: lv2bounce
http://www.cs.odu.edu/~bader
> -----Original Message-----
> From: Jeff Fongemie [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 10:09 AM
> To: CF-Talk
> Subject: Macs and CFFILE! WHY????
>
>
> Hello cf-talk,
>
> I'm becoming very frustrated with Mac Browsers.
>
> I use CFFILE and the client in using MAC Internet Explorer. He gets
> errors when uploading a picture.
>
> I've got:
>
> <cffile Destination="#Application.Filedir#"
> Action="upload"
>
> ACCEPT="image/gif, image/pjpg, image/pjpeg, image/jpg"
> Nameconflict="overwrite"
> FileField="photofile">
>
>
> <CFQUERY NAME="UPDATE_NEWS" dataSource="#application.DSN#">
> update news
> Set photo='#trim(file.serverfile)#'
> Where newsID=#form.newsID#
> </cfquery>
>
>
>
>
> This is what he says"
>
> > If I use the "Browse" button to select the image from my
> hard drive, I get
> > "HTTP/1.1 500 Server Error" once I hit "upload the photo."
> I'm using IE5,
> > and the image is a 120x116 .jpg.
>
>
> He is using explorer 5 so I don't think it is the Mac Binary setting
> issue I've read of in this group. We had that problem, and even that
> allowed the upload to go through, but then would not display on the
> page.
>
> Anyone have any ideas here? it is the 500 error that has me stumped.
>
>
> Best regards,
> Jeff Fongemie mailto:[EMAIL PROTECTED]
> ------------------------
> Internet Guns For Hire
> (603) 356-0768
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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