[thelist] What MIME type will cause Excel spreadsheet to download?

Joshua Olson joshua at waetech.com
Wed Aug 18 13:43:24 CDT 2004


> -----Original Message-----
> From: Chris Johnston
> Sent: Wednesday, August 18, 2004 2:06 PM
> 
> Hello,
> 
> In the application that I am working on, I am using j2ee to serve up
> an excel spreadsheet. What I wondering is what mime type can I use in
> the header to cause the spreadsheet to download instead of opening in
> Excel?

Chris,

Set the content-disposition header to "attachment; filename=whatever.xls"

I've had good luck setting the content type to application/unknown.

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168 





More information about the thelist mailing list