You need to use CFTry and CFCatch around your CFfile commands.
You also need to make sure that you have enctype="multipart/form-data" in
the form tag.
At 10:09 AM 4/18/2001 -0400, you wrote:
>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