473,767 Members | 2,198 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the correct MIME type for DOCX, XLSX, & PPTX?

We need this both for what we set in IIS and for the
HttpContext.Rep onse.ContentTyp e property.

We've tried a bunch of different things and none seem to work.

thanks - dave

david@at******@ windward.dot.do t.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Jun 27 '08 #1
4 27179
Good list of them here - and an easy way of adding them all
http://www.bram.us/2007/05/25/office...types-for-iis/
--
--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"David Thielen" <th*****@nospam .nospamwrote in message
news:qa******** *************** *********@4ax.c om...
We need this both for what we set in IIS and for the
HttpContext.Rep onse.ContentTyp e property.

We've tried a bunch of different things and none seem to work.

thanks - dave

david@at******@ windward.dot.do t.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Jun 27 '08 #2
I don't know the answer offhand, but if you have software that you can open
them with, you can easily find out by looking at the Registry.
--
Nathan Sokalski
nj********@hotm ail.com
http://www.nathansokalski.com/

"David Thielen" <th*****@nospam .nospamwrote in message
news:qa******** *************** *********@4ax.c om...
We need this both for what we set in IIS and for the
HttpContext.Rep onse.ContentTyp e property.

We've tried a bunch of different things and none seem to work.

thanks - dave

david@at******@ windward.dot.do t.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Jun 27 '08 #3
Hi Dave,

In addition to the list John mentioned, I found the following MSDN
reference include some content-type info for some other component files in
OFFICE 2007 OOXML:

#Introducing the Office (2007) Open XML File Formats
http://msdn.microsoft.com/en-us/library/aa338205.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: David Thielen <th*****@nospam .nospam>
Subject: What is the correct MIME type for DOCX, XLSX, & PPTX?
Date: Mon, 26 May 2008 15:37:55 -0600
>We need this both for what we set in IIS and for the
HttpContext.Re ponse.ContentTy pe property.

We've tried a bunch of different things and none seem to work.

thanks - dave

david@at****** @windward.dot.d ot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Jun 27 '08 #4
thank you

On Mon, 26 May 2008 23:52:54 +0100, "John Timney \(MVP\)"
<xy******@timne y.eclipse.co.uk wrote:
>Good list of them here - and an easy way of adding them all
http://www.bram.us/2007/05/25/office...types-for-iis/
--

david@at******@ windward.dot.do t.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
9097
by: Phil Powell | last post by:
How do you detect an image MIME type if you know of the image in a directory? For example, I know of: if (is_file("$myImagePath/$myImageName")) { // FIND MIME TYPE BUT HOW I DUNNO } The only way I could think of was to determine the extension of the
9
8569
by: Daniel | last post by:
I'm working on a CGI script that creates a dynamically generated .js file. What MIME type should I use? Every site I go to says something different: text/javascript, application/javascript, application/x-javascript, or application/ecmascript. Which one is it?
0
992
by: Stephen Costanzo | last post by:
I need to specify the MIME type for a file to store to Content Manager. I do not want to trust the user to select the correct type. Is there an API of some sort to determine the correct MIME Type. Assumption: The user did not save a WORD file with an EXCEL extension. Thank you
1
2556
by: wh173b0y | last post by:
Alright, i`m developing a site for a contest that runs off of asyncronus HTTP requests(AJAX is the popular term). now i'm using code that is based strongly off the mozilla developer center's "ajax:getting started" page found at http://developer.mozilla.org/en/docs/AJAX:Getting_Started i`ve tested thier version and it works fine. but when i wrote the code, opera and FF accepted the code, noteably excluding IE. i've narrowed the problem to...
5
3005
by: splodge | last post by:
This may seem like a stupid question but I want to check before I go ahead and build this... I am working on a portal, part of which allows users to upload files. Part of the array within $_FILES superglobal gives the mime type for the file. Is this 100% reliable / accurate? If the mime type says the file type is jpeg is it always right? Two reasons I want to know: 1. Certain types of files mustn't be uploaded, .exe files for example....
1
2378
by: David Trimboli | last post by:
I've got a 16-bit Windows executable file linked in a document for download. What would be the correct MIME type to indicate in the link? http://www.trimboli.name/continuum/dotw.html David Stardate 7035.4
4
4579
by: Breana | last post by:
it's a wordpad, most ppl use um and i forgot to ask last time. i tried document/wordpad but no go...
1
6733
by: tinman77 | last post by:
Thanks in advance for everyone's help... My problem is that more often than I would like, I get attachments that for some reason or another do not include an extension. What I want to do is create a C# app that based on a file on my hard drive that I specify, will spit back to me the mime type. I can do the rest from there. I have looked, and looked and looked a little more for a way to determine the type of a file that does not rely...
2
8102
by: =?Utf-8?B?TWFkaXNvbg==?= | last post by:
Hi there, I'm working with VS 2008(framework3.5), IIS6, SQL Server 2005. I have website that allow users to upload doc, docx, xls, xlsx ... and so on. I save file to SQL Server 2005 with VarBinary(Max) field. I can saved files no problems but I can not view the docx file. I modified MIME type in IIS to ..docx application/vnd.openxmlformats-officedocument.wordprocessingml.document ..xlsx...
0
9571
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10009
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9838
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.