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 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 …

json api http rest mime-types
How can I get MIME type of an InputStream of a file that is being uploaded?

Simple question: how can I get MIME type (or content type) of an InputStream, without saving file, for a file …

java servlets inputstream mime-types
How can I edit Chrome MIME type mappings?

I opened a image/x-png type image in new tab, but Chrome just downloaded it. I googled it and found …

google-chrome png mime-types
ERROR 404.3 Not Found for JSON file

I have been getting the "ERROR 404.3 Not Found" for JSON file that I am calling using AJAX call on "Internet …

json iis iis-7.5 http-status-code-404 mime-types
Determine file type in Ruby

How does one reliably determine a file's type? File extension analysis is not acceptable. There must be a rubyesque tool …

ruby content-type mime-types file-type
Chrome downloads PNG image links. I want them to open for viewing in a new tab. How do I make Chrome do that?

When I click on an image link right now, Chrome downloads the image instead of opening it. Even if I …

google-chrome file-io png mime-types
Android: Let user pick image or video from Gallery

Is it possible to to start Gallery in such a way so both pictures and videos are shown? Thanks

android android-intent mime-types
How is mime type of an uploaded file determined by browser?

I have a web app where the user needs to upload a .zip file. On the server-side, I am checking …

forms browser webforms mime-types
M4V Mimetype - video/mp4 or video/m4v?

I am serving a video via the HTML5 video element. I'm finding conflicting information about the appropriate MIME type for …

html video mime-types
Resource interpreted as other but transferred with MIME type text/javascript?

I keep getting "Resource interpreted as other but transferred with MIME type text/javascript.", but everything seems to be working …

javascript mime-types meta-tags