Questions tagged [mime-types]

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

3161 questions
179
votes
8 answers

Add MIME mapping in web.config for IIS Express

I need to add a new MIME mapping for .woff file extensions to IIS Express. If I add the following snippet to the "applicationhost.config" of IIS Express it works fine:
Martin Buberl
  • 42,048
  • 25
  • 96
  • 139
179
votes
2 answers

What is the meaning of "vnd" in MIME types?

Reading up on content providers, I keep wondering why both the category and type of Android MIME types are prefixed with vnd. For example: vnd.android.cursor.dir/vnd. vnd.android.cursor.item/vnd. Anyone know what this stands…
rogerkk
  • 4,986
  • 4
  • 31
  • 49
175
votes
4 answers

Correct mime type for .mp4

I have two applications as mentioned below: Admin application through which I am able to upload a .mp4 file to the server. I am trying to download the .mp4 using mobile application in iPad. The Admin application is made by using asp.net 4.0 and…
santosh kumar patro
  • 5,491
  • 12
  • 48
  • 105
167
votes
6 answers

.rar, .zip files MIME Type

I'm developing a simple php upload script, and users can upload only ZIP and RAR files. What MIME types I should use to check $_FILES[x][type]? (a complete list please) Thank you..
mrdaliri
  • 6,594
  • 21
  • 67
  • 101
160
votes
3 answers

Content-Type header [application/x-www-form-urlencoded] is not supported on Elasticsearch

I used to have ElasticSearch 5.2, and just upgraded to 6.0. I am trying to create an index template following guide here, but got error Content-Type header [application/x-www-form-urlencoded] is not supported My query is curl -X PUT…
Barry Leishman
  • 1,603
  • 2
  • 5
  • 7
160
votes
3 answers

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. (Source) E.g. However, savvy internet guru, Paul…
Chuck Le Butt
  • 43,669
  • 58
  • 179
  • 268
158
votes
4 answers

When to use the JavaScript MIME type application/javascript instead of text/javascript?

Based on the question jQuery code not working in IE, text/javascript is used in HTML documents so Internet Explorer can understand it. But I’m wondering, when would you use application/javascript, and more importantly, why would you use it instead…
Mark Baijens
  • 11,932
  • 10
  • 39
  • 66
150
votes
3 answers

Unknown file type MIME?

Do I have to specify a MIME type if the uploaded file has no extension? In other words is there a default general MIME type?
Shimmy Weitzhandler
  • 92,920
  • 119
  • 388
  • 596
144
votes
7 answers

What is the correct MIME type to use for an RSS feed?

Is one MIME type preferable to ensure compatibility with RSS readers and other scrapers? The options seem to be: text/xml text/rss+xml Interestingly Stackoverflow is using text/html.
Steve Claridge
  • 9,202
  • 8
  • 30
  • 33
143
votes
1 answer

duplicate MIME type "text/html"?

I have this in Nginx configuration files gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; but Nginx give error when starting up [warn]: duplicate MIME…
Memek Gue Bolong Gan
  • 1,435
  • 2
  • 9
  • 4
139
votes
11 answers

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 the values of all the standard mime-type (aka content-type). This interface should not be encumbered with too deep with other…
Blessed Geek
  • 19,240
  • 21
  • 96
  • 165
133
votes
5 answers

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? Can someone explain the difference?
Kyle
  • 20,061
  • 36
  • 105
  • 192
129
votes
6 answers

YAML media type?

What is the most appropriate media type (formally MIME type) to use when sending data structured with YAML over HTTP and why? There is no registered application type or text type that I can see. Example: > GET /example.yaml < Content-Type: ???? < <…
Jon Cram
  • 15,309
  • 21
  • 72
  • 105
127
votes
5 answers

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 script? The reason I need it is because ImageShack appears to need it to upload a file, as for some reason it detects the .png file as an…
Mint
  • 12,683
  • 29
  • 67
  • 107
126
votes
1 answer

Is there a "default" MIME type?

Is there what could be considered a "default" mimetype? I've seen "unknown/unknown" and "application/binary". But is there a default to revert to when no other MIME type is found?
Mark A
  • 5,521
  • 5
  • 23
  • 34