Jay:

When the server sends files to the browser, it is the server's
responsibility to include the file's Mime-Type.  Whether or not the browser
accepts this (it should) is up to the browser, but the server always returns
a Mime-Type.  MSIE has been known to ignore the Mime-Type returned by the
server and to instead try to figure out the file type on its own by looking
at the file's extension and the first few bytes of the file.

When a browser sends a file to the server, it is the browser's
responsibility to include the Mime-Type of the file being sent.  The server
is supposed to rely on the browser-supplied Mime-Type.  Coming from a
Windows-based system, it is entirely possible that the browser is sending
over "application/msexcel" instead of "application/vnd-msexcel" as the
Mime-Type.  This would be Microsoft's fault 8^).

In general, whichever party to the connection is sending the content, it is
that party's responsibility to also specify the content's Mime-Type.  For
more information on HTTP take a look at the preso I gave last year:
http://www.cfug-md.org/meetings/ColdFusionFoundationsHTTP_09-09-03.ppt

--
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:
> 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. ;-)

Mosh Teitelbaum [mailto:[EMAIL PROTECTED] wrote:
> > 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.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to