Is there a "default" MIME type?

Mime TypesMime

Mime Types Problem Overview


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?

Mime Types Solutions


Solution 1 - Mime Types

The least specific official MIME type is application/octet-stream. Without any additional information, it says "here is a bunch of bytes, hopefully there is an application over on your end which knows what to do with them". Sometimes there is a file name which helps convey to the recipient what to do with the data.

"unknown" doesn't really add anything over this, except to confuse clients who don't support random unofficial MIME types. Ditto for application/binary; it's just a non-standard way of restating "octet-stream".

This is the answer to "What can I put in the Content-Type: header if I can't find an existing content type which adequately describes my data?" which is how I have interpreted this question. The proposed duplicate https://stackoverflow.com/questions/1176022/unknown-file-type-mime has a lengthy answer which discusses "How is my data interpreted if I don't put a valid Content-Type: header?" specifically in an HTTP context; the answer to that is protocol-specific (in email, for example, the default implied Content-Type: for MIME body parts which do not contain this header is text/plain; charset="us-ascii").

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMark AView Question on Stackoverflow
Solution 1 - Mime TypestripleeeView Answer on Stackoverflow