This does bring up a question however, I was under the impression that when
sending files it was the browser that interpreted the mime information and
loaded the appropriate program.
Secondly, when uploading an xls file to the server it is reported as being
application/msexcel on both of our systems and if you use
accept="application/vnd.ms-excel" on the cffile it will fail (I know this
because this is done on a different section of the site involving importing
values) and this is why I was using the other mime type.
I am convinced that this is all Microsoft's fault. ;-)
--
Jay
> -----Original Message-----
> From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]
> Sent: 13 July 2004 15:13
> To: CF-Talk
> Subject: RE: Unusual behaviour with CFHEADER
>
> James:
>
> I don't know that this is it but it may have to do with the
> Mime-Type you're using. The official, IANA-defined Mime-Type
> for Excel file is "application/vnd.ms-excel" and not the one
> you're using. It may be that Windows servers work well with
> what you have and that *nix servers don't.
>
> Just a thought.
>
> --
> Mosh Teitelbaum
> evoch, LLC
> Tel: (301) 942-5378
> Fax: (301) 933-3651
> Email: [EMAIL PROTECTED]
> WWW: http://www.evoch.com/
>
> James Smith [mailto:[EMAIL PROTECTED] wrote:
> > I am exporting stock information to a csv file then using the
> > following to lines to deliver the file to the user.
> >
> > <cfheader name="Content-Disposition" value="attachment;
> > filename=stockvaluation.csv"> <cfcontent
> > file="#CurrentDirectory#Files/stockvaluation.csv" reset="yes"
> > type="application/msexcel">
> >
> > From our Windows 2003 Server this works fine and starts to
> download a
> > file asking the user to save or open it, however from our RedHat
> > server the contents of the file are displayed in the browser window
> > instead, this suggests the first line isn't being
> processed, however
> > if I then do a
> "File
> > > Save As" the default filename is "stockvaluation_csv.html" so
> > > clearly it
> > is.
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

