Top "Mime-types" questions

A MIME type after MIME (Multipurpose Internet Mail Extensions) is a two-part identifier for file formats on the Internet.

What Content-Type value should I send for my XML sitemap?

I thought I should send "text/xml", but then I read that I should send "application/xml". Does it matter? …

xml mime-types sitemap xml-sitemap
Which mime type should I use for mp3

I'm trying to decide which mime type to choose for returning mp3 data (served up by php) according to this …

php mp3 mime-types
How to set MimeBodyPart ContentType to "text/html"?

The program below shows an unexpected return value for HTML multipart mime type. Why does this program print "text/plain" …

java mime jakarta-mail mime-types
Correct MIME Type for favicon.ico?

According to the Internet Assigned Numbers Authority (IANA), all .ico file falls under the MIME type image/vnd.microsoft.icon. (…

html browser mime-types favicon
How can I find out a file's MIME type (Content-Type)?

Is there a way to find out the MIME type (or is it called "Content-Type"?) of a file in a …

linux bash content-type mime mime-types
Debug message "Resource interpreted as other but transferred with MIME type application/javascript"

OK, I understand what the messages means, but I'm really not sure what's causing it. I'm using Safari and the …

javascript apache safari mime-types
Interface/enum listing standard mime-type constants

I am looking among the standard libraries (like apache commons, jax, jboss, javax) for an interface or enum that lists …

java gwt mime-types content-type guava
Why write <script type="text/javascript"> when the mime type is set by the server?

My understanding is that mime types are set by the web server. Why do we add the type="text/javascript …

javascript html css mime-types
How to check file types of uploaded files in PHP?

On the PHP website, the only real checking they suggest is using is_uploaded_file() or move_uploaded_file(), here. …

php validation file-upload mime-types
"not well-formed" error in Firefox when loading JSON file with XMLHttpRequest

I'm getting a "not well-formed" error in the error console of Firefox 3.0.7 when the JavaScript on my page loads a …

javascript firefox xmlhttprequest mime-types