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
73
votes
9 answers

HTML5 video will not loop

I have a video as a background to a web page, and I am trying to get it to loop. Here is the code:
72
votes
4 answers

What is the difference between "image/png" and "image/x-png"?

What is the difference between "image/png" and "image/x-png"?
Aaron Bush
  • 1,065
  • 2
  • 8
  • 15
71
votes
6 answers

Return a PHP page as an image

I am trying to read a image file (.jpeg to be exact), and 'echo' it back to the page output, but have is display an image... my index.php has an image link like this: and my php script does basically this: 1)…
MichaelICE
  • 9,500
  • 19
  • 65
  • 104
71
votes
1 answer

What is the correct Protobuf content type?

JSON has application/json as a standard. For protobuf some people use application/x-protobuf, but I saw something as odd as application/vnd.google.protobuf being proposed. Do we have an RFC or some other standard that I can use as a reference for…
Jader Dias
  • 81,082
  • 147
  • 410
  • 611
69
votes
8 answers

"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 text file containing an object in JavaScript Object Notation format. If the file contains nothing but the JSON object, it produces the…
A. Levy
  • 25,944
  • 6
  • 36
  • 55
68
votes
6 answers

What MIME type if JSON is being returned by a REST API?

My REST API returns JSON. I'm currently returning text/plain as the MIME type, but it feels funny. Should I be returning application/x-javascript or some other type? The second question is with regard to the HTTP status code for error…
ashitaka
  • 3,828
  • 7
  • 34
  • 42
68
votes
4 answers

Why write